Share via


ArrayModelBinder<TElement>.CreateOrReplaceCollection Method (ControllerContext, ExtensibleModelBindingContext, IList<TElement>)

 

Converts the collection to an array.

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

protected override bool CreateOrReplaceCollection(
    ControllerContext controllerContext,
    ExtensibleModelBindingContext bindingContext,
    IList<TElement> newCollection
)
protected:
virtual bool CreateOrReplaceCollection(
    ControllerContext^ controllerContext,
    ExtensibleModelBindingContext^ bindingContext,
    IList<TElement>^ newCollection
) override
override CreateOrReplaceCollection : 
        controllerContext:ControllerContext *
        bindingContext:ExtensibleModelBindingContext *
        newCollection:IList<'TElement> -> bool
Protected Overrides Function CreateOrReplaceCollection (
    controllerContext As ControllerContext,
    bindingContext As ExtensibleModelBindingContext,
    newCollection As IList(Of TElement)
) As Boolean

Parameters

Return Value

Type: System.Boolean

true in all cases.

See Also

ArrayModelBinder<TElement> Class
Microsoft.Web.Mvc.ModelBinding Namespace

Return to top