ModelBinderDictionary Class

 

Represents a class that contains all model binders for the application, listed by binder type.

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ModelBinderDictionary

Syntax

public class ModelBinderDictionary : IDictionary<Type, IModelBinder>, 
    ICollection<KeyValuePair<Type, IModelBinder>>, IEnumerable<KeyValuePair<Type, IModelBinder>>, 
    IEnumerable
public ref class ModelBinderDictionary : IDictionary<Type^, IModelBinder^>, 
    ICollection<KeyValuePair<Type^, IModelBinder^>>, IEnumerable<KeyValuePair<Type^, IModelBinder^>>, 
    IEnumerable
type ModelBinderDictionary = 
    class
        interface IDictionary<Type, IModelBinder>
        interface ICollection<KeyValuePair<Type, IModelBinder>>
        interface IEnumerable<KeyValuePair<Type, IModelBinder>>
        interface IEnumerable
    end
Public Class ModelBinderDictionary
    Implements IDictionary(Of Type, IModelBinder), ICollection(Of KeyValuePair(Of Type, IModelBinder)),
    IEnumerable(Of KeyValuePair(Of Type, IModelBinder)), IEnumerable

Constructors

Name Description
System_CAPS_pubmethod ModelBinderDictionary()

Initializes a new instance of the ModelBinderDictionary class.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of elements in the model binder dictionary.

System_CAPS_pubproperty DefaultBinder

Gets or sets the default model binder.

System_CAPS_pubproperty IsReadOnly

Gets a value that indicates whether the model binder dictionary is read-only.

System_CAPS_pubproperty Item[Type]

Gets or sets the specified key in an object that implements the IModelBinder interface.

System_CAPS_pubproperty Keys

Gets a collection that contains the keys in the model binder dictionary.

System_CAPS_pubproperty Values

Gets a collection that contains the values in the model binder dictionary.

Methods

Name Description
System_CAPS_pubmethod Add(KeyValuePair<Type, IModelBinder>)

Adds the specified item to the model binder dictionary.

System_CAPS_pubmethod Add(Type, IModelBinder)

Adds the specified item to the model binder dictionary using the specified key.

System_CAPS_pubmethod Clear()

Removes all items from the model binder dictionary.

System_CAPS_pubmethod Contains(KeyValuePair<Type, IModelBinder>)

Determines whether the model binder dictionary contains a specified value.

System_CAPS_pubmethod ContainsKey(Type)

Determines whether the model binder dictionary contains an element that has the specified key.

System_CAPS_pubmethod CopyTo(KeyValuePair<Type, IModelBinder>[], Int32)

Copies the elements of the model binder dictionary to an array, starting at a specified index.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetBinder(Type)

Retrieves the model binder for the specified type.

System_CAPS_pubmethod GetBinder(Type, Boolean)

Retrieves the model binder for the specified type or retrieves the default model binder.

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that can be used to iterate through the collection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Remove(KeyValuePair<Type, IModelBinder>)

Removes the first occurrence of the specified element from the model binder dictionary.

System_CAPS_pubmethod Remove(Type)

Removes the element that has the specified key from the model binder dictionary.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(Type, IModelBinder)

Gets the value that is associated with the specified key.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an enumerator that can be used to iterate through a collection.

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

System.Web.Mvc Namespace

Return to top