CollectionModelBinder<'TElement>.CreateOrReplaceCollection Method (ModelBindingExecutionContext, ModelBindingContext, IList<'TElement>)

.NET Framework (current version)
 

Provides a way for derived classes to manipulate the collection before returning it from the binder.

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

abstract CreateOrReplaceCollection : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext *
        newCollection:IList<'TElement> -> bool
override CreateOrReplaceCollection : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext *
        newCollection:IList<'TElement> -> 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<'TElement>

The new collection.

Return Value

Type: System.Boolean

true in all cases.

.NET Framework
Available since 4.5
Return to top
Show: