DictionaryModelBinder<TKey, TValue>.CreateOrReplaceCollection Method (ControllerContext, ExtensibleModelBindingContext, IList<KeyValuePair<TKey, TValue>>)
Converts the collection to a dictionary.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
protected override bool CreateOrReplaceCollection(
ControllerContext controllerContext,
ExtensibleModelBindingContext bindingContext,
IList<KeyValuePair<TKey, TValue>> newCollection
)
protected:
virtual bool CreateOrReplaceCollection(
ControllerContext^ controllerContext,
ExtensibleModelBindingContext^ bindingContext,
IList<KeyValuePair<TKey, TValue>>^ newCollection
) override
override CreateOrReplaceCollection :
controllerContext:ControllerContext *
bindingContext:ExtensibleModelBindingContext *
newCollection:IList<KeyValuePair<'TKey, 'TValue>> -> bool
Protected Overrides Function CreateOrReplaceCollection (
controllerContext As ControllerContext,
bindingContext As ExtensibleModelBindingContext,
newCollection As IList(Of KeyValuePair(Of TKey, TValue))
) As Boolean
Parameters
controllerContext
Type: System.Web.Mvc.ControllerContextThe controller context.
bindingContext
Type: Microsoft.Web.Mvc.ModelBinding.ExtensibleModelBindingContextThe binding context.
newCollection
Type: System.Collections.Generic.IList<KeyValuePair<TKey, TValue>>The new collection.
Return Value
Type: System.Boolean
true in all cases.
See Also
DictionaryModelBinder<TKey, TValue> Class
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top