ModelBinderProviderCollection Class

Provides a container for model binder providers.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<IModelBinderProvider>
    System.Web.Mvc.ModelBinderProviderCollection

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

Syntax

'Declaration
Public Class ModelBinderProviderCollection _
    Inherits Collection(Of IModelBinderProvider)
'Usage
Dim instance As ModelBinderProviderCollection
public class ModelBinderProviderCollection : Collection<IModelBinderProvider>
public ref class ModelBinderProviderCollection : public Collection<IModelBinderProvider^>
type ModelBinderProviderCollection =  
    class 
        inherit Collection<IModelBinderProvider>
    end
public class ModelBinderProviderCollection extends Collection<IModelBinderProvider>

The ModelBinderProviderCollection type exposes the following members.

Constructors

  Name Description
Public method ModelBinderProviderCollection() Initializes a new instance of the ModelBinderProviderCollection class.
Public method ModelBinderProviderCollection(IList<IModelBinderProvider>) Initializes a new instance of the ModelBinderProviderCollection class using a list of model binder providers.

Top

Properties

  Name Description
Public property Count (Inherited from Collection<IModelBinderProvider>.)
Public property Item (Inherited from Collection<IModelBinderProvider>.)
Protected property Items (Inherited from Collection<IModelBinderProvider>.)

Top

Methods

  Name Description
Public method Add (Inherited from Collection<IModelBinderProvider>.)
Public method Clear (Inherited from Collection<IModelBinderProvider>.)
Protected method ClearItems (Inherited from Collection<IModelBinderProvider>.)
Public method Contains (Inherited from Collection<IModelBinderProvider>.)
Public method CopyTo (Inherited from Collection<IModelBinderProvider>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBinder Returns a model binder of the specified type.
Public method GetEnumerator (Inherited from Collection<IModelBinderProvider>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf (Inherited from Collection<IModelBinderProvider>.)
Public method Insert (Inherited from Collection<IModelBinderProvider>.)
Protected method InsertItem Inserts a model binder provider into the ModelBinderProviderCollection at the specified index. (Overrides Collection<T>.InsertItem(Int32, T).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from Collection<IModelBinderProvider>.)
Public method RemoveAt (Inherited from Collection<IModelBinderProvider>.)
Protected method RemoveItem (Inherited from Collection<IModelBinderProvider>.)
Protected method SetItem Replaces the model binder provider element at the specified index. (Overrides Collection<T>.SetItem(Int32, T).)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<IModelBinderProvider>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<IModelBinderProvider>.)

Top

Remarks

Model binder providers run in order and before static registered providers. The first model binder provider of the specified type is returned. The Binders property provides a static registration point for model binders.

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.Mvc Namespace