ModelBinderDictionary ModelBinderDictionary ModelBinderDictionary Class

Definition

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

public class ModelBinderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder>>, System.Collections.Generic.IDictionary<Type,System.Web.Mvc.IModelBinder>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder>>
type ModelBinderDictionary = class
    interface IDictionary<Type, IModelBinder>
    interface ICollection<KeyValuePair<Type, IModelBinder>>
    interface seq<KeyValuePair<Type, IModelBinder>>
    interface IEnumerable
Public Class ModelBinderDictionary
Implements ICollection(Of KeyValuePair(Of Type, IModelBinder)), IDictionary(Of Type, IModelBinder), IEnumerable(Of KeyValuePair(Of Type, IModelBinder))
Inheritance
ModelBinderDictionaryModelBinderDictionaryModelBinderDictionary
Implements

Constructors

ModelBinderDictionary() ModelBinderDictionary() ModelBinderDictionary()

Initializes a new instance of the ModelBinderDictionary class.

Properties

Count Count Count

Gets the number of elements in the model binder dictionary.

DefaultBinder DefaultBinder DefaultBinder

Gets or sets the default model binder.

IsReadOnly IsReadOnly IsReadOnly

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

Item[Type] Item[Type] Item[Type]

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

Keys Keys Keys

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

Values Values Values

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

Methods

Add(KeyValuePair<Type,IModelBinder>) Add(KeyValuePair<Type,IModelBinder>) Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the model binder dictionary.

Add(Type, IModelBinder) Add(Type, IModelBinder) Add(Type, IModelBinder)

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

Clear() Clear() Clear()

Removes all items from the model binder dictionary.

Contains(KeyValuePair<Type,IModelBinder>) Contains(KeyValuePair<Type,IModelBinder>) Contains(KeyValuePair<Type,IModelBinder>)

Determines whether the model binder dictionary contains a specified value.

ContainsKey(Type) ContainsKey(Type) ContainsKey(Type)

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

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

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

GetBinder(Type, Boolean) GetBinder(Type, Boolean) GetBinder(Type, Boolean)

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

GetBinder(Type) GetBinder(Type) GetBinder(Type)

Retrieves the model binder for the specified type.

GetEnumerator() GetEnumerator() GetEnumerator()

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

Remove(KeyValuePair<Type,IModelBinder>) Remove(KeyValuePair<Type,IModelBinder>) Remove(KeyValuePair<Type,IModelBinder>)

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

Remove(Type) Remove(Type) Remove(Type)

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

TryGetValue(Type, IModelBinder) TryGetValue(Type, IModelBinder) TryGetValue(Type, IModelBinder)

Gets the value that is associated with the specified key.

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

Applies to