CollectionModelBinder<TElement> Class

Maps a browser request to a collection.

Inheritance Hierarchy

System.Object
  System.Web.Http.ModelBinding.Binders.CollectionModelBinder<TElement>
    System.Web.Http.ModelBinding.Binders.ArrayModelBinder<TElement>
    System.Web.Http.ModelBinding.Binders.DictionaryModelBinder<TKey, TValue>

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

Syntax

'Declaration
Public Class CollectionModelBinder(Of TElement) _
    Implements IModelBinder
'Usage
Dim instance As CollectionModelBinder(Of TElement)
public class CollectionModelBinder<TElement> : IModelBinder
generic<typename TElement>
public ref class CollectionModelBinder : IModelBinder
type CollectionModelBinder<'TElement> =  
    class
        interface IModelBinder
    end
JScript does not support generic types and methods.

Type Parameters

  • TElement
    The type of the collection.

The CollectionModelBinder<TElement> type exposes the following members.

Constructors

  Name Description
Public method CollectionModelBinder<TElement> Initializes a new instance of the CollectionModelBinder<TElement> class.

Top

Methods

  Name Description
Public method BindModel Binds the model by using the specified execution context and binding context.
Protected method CreateOrReplaceCollection Provides a way for derived classes to manipulate the collection before returning it from the binder.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Http.ModelBinding.Binders Namespace