Share via


CollectionModelBinder<TElement> Class

 

Maps a browser request to a collection.

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

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.ModelBinding.CollectionModelBinder<TElement>
    Microsoft.Web.Mvc.ModelBinding.ArrayModelBinder<TElement>
    Microsoft.Web.Mvc.ModelBinding.DictionaryModelBinder<TKey, TValue>

Syntax

public class CollectionModelBinder<TElement> : IExtensibleModelBinder
generic<typename TElement>
public ref class CollectionModelBinder : IExtensibleModelBinder
type CollectionModelBinder<'TElement> = 
    class
        interface IExtensibleModelBinder
    end
Public Class CollectionModelBinder(Of TElement)
    Implements IExtensibleModelBinder

Type Parameters

  • TElement
    The type of the collection.

Constructors

Name Description
System_CAPS_pubmethod CollectionModelBinder<TElement>()

Initializes a new instance of the CollectionModelBinder<TElement> class.

Methods

Name Description
System_CAPS_pubmethod BindModel(ControllerContext, ExtensibleModelBindingContext)

Binds the model by using the specified controller context and binding context.

System_CAPS_protmethod CreateOrReplaceCollection(ControllerContext, ExtensibleModelBindingContext, IList<TElement>)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Web.Mvc.ModelBinding Namespace

Return to top