Export (0) Print
Expand All

ModelBinderDictionary Class

.NET Framework 4

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

System.Object
  System.Web.Mvc.ModelBinderDictionary

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

public class ModelBinderDictionary : IDictionary<Type, IModelBinder>, 
	ICollection<KeyValuePair<Type, IModelBinder>>, IEnumerable<KeyValuePair<Type, IModelBinder>>, 
	IEnumerable

The ModelBinderDictionary type exposes the following members.

  NameDescription
Public methodModelBinderDictionaryInitializes a new instance of the ModelBinderDictionary class.
Top

  NameDescription
Public propertyCountGets the number of elements in the model binder dictionary.
Public propertyDefaultBinderGets or sets the default model binder.
Public propertyIsReadOnlyGets a value that indicates whether the model binder dictionary is read-only.
Public propertyItemGets or sets the specified key in an object that implements the IModelBinder interface.
Public propertyKeysGets a collection that contains the keys in the model binder dictionary.
Public propertyValuesGets a collection that contains the values in the model binder dictionary.
Top

  NameDescription
Public methodAdd(KeyValuePair<Type, IModelBinder>)Adds the specified item to the model binder dictionary.
Public methodAdd(Type, IModelBinder)Adds the specified item to the model binder dictionary using the specified key.
Public methodClearRemoves all items from the model binder dictionary.
Public methodContainsDetermines whether the model binder dictionary contains a specified value.
Public methodContainsKeyDetermines whether the model binder dictionary contains an element that has the specified key.
Public methodCopyToCopies the elements of the model binder dictionary to an array, starting at a specified index.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetBinder(Type)Retrieves the model binder for the specified type.
Public methodGetBinder(Type, Boolean)Retrieves the model binder for the specified type or retrieves the default model binder.
Public methodGetEnumeratorReturns an enumerator that can be used to iterate through the collection.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemove(KeyValuePair<Type, IModelBinder>)Removes the first occurrence of the specified element from the model binder dictionary.
Public methodRemove(Type)Removes the element that has the specified key from the model binder dictionary.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetValueGets the value that is associated with the specified key.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that can be used to iterate through a collection.
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft