Share via


ArrayModelBinder<TElement> Class

Maps a browser request to an array.

Inheritance Hierarchy

System.Object
  System.Web.Http.ModelBinding.Binders.CollectionModelBinder<TElement>
    System.Web.Http.ModelBinding.Binders.ArrayModelBinder<TElement>

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

Syntax

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

Type Parameters

  • TElement
    The type of the array.

The ArrayModelBinder<TElement> type exposes the following members.

Constructors

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

Top

Methods

  Name Description
Public method BindModel Indicates whether the model is binded. (Overrides CollectionModelBinder<TElement>.BindModel(HttpActionContext, ModelBindingContext).)
Protected method CreateOrReplaceCollection Converts the collection to an array. (Overrides CollectionModelBinder<TElement>.CreateOrReplaceCollection(HttpActionContext, ModelBindingContext, IList<TElement>).)
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