DictionaryModelBinder<'TKey, 'TValue>.CreateOrReplaceCollection Method (ModelBindingExecutionContext, ModelBindingContext, IList<KeyValuePair<'TKey, 'TValue>>)

.NET Framework (current version)
 

Converts the collection to a dictionary.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

override CreateOrReplaceCollection : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext *
        newCollection:IList<KeyValuePair<'TKey, 'TValue>> -> bool

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

bindingContext
Type: System.Web.ModelBinding.ModelBindingContext

The binding context.

newCollection
Type: System.Collections.Generic.IList<KeyValuePair<'TKey, 'TValue>>

The new collection.

Return Value

Type: System.Boolean

true in all cases.

.NET Framework
Available since 4.5
Return to top
Show: