ModelBinderDictionary ModelBinderDictionary ModelBinderDictionary ModelBinderDictionary Class

Definition

Provides a container for all model binders for the application, listed by binder type.

public ref class ModelBinderDictionary : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<Type ^, System::Web::ModelBinding::IModelBinder ^>>, System::Collections::Generic::IDictionary<Type ^, System::Web::ModelBinding::IModelBinder ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Type ^, System::Web::ModelBinding::IModelBinder ^>>
public class ModelBinderDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Type,System.Web.ModelBinding.IModelBinder>>, System.Collections.Generic.IDictionary<Type,System.Web.ModelBinding.IModelBinder>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Type,System.Web.ModelBinding.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
ModelBinderDictionaryModelBinderDictionaryModelBinderDictionaryModelBinderDictionary
Implements

Constructors

ModelBinderDictionary() ModelBinderDictionary() ModelBinderDictionary() ModelBinderDictionary()

Initializes a new instance of the ModelBinderDictionary class.

Properties

Count Count Count Count

Gets the number of items in the dictionary.

DefaultBinder DefaultBinder DefaultBinder DefaultBinder

Gets or sets the default model binder.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

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

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

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

Keys Keys Keys Keys

Gets a collection that contains the keys in the dictionary.

Values 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>) Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the dictionary.

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

Adds the specified item to the dictionary.

Clear() Clear() Clear() Clear()

Removes all items from the dictionary.

Contains(KeyValuePair<Type,IModelBinder>) 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) 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) CopyTo(KeyValuePair<Type,IModelBinder>[], Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(KeyValuePair<Type,IModelBinder>) 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) Remove(Type)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetValue(Type, IModelBinder) 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() IEnumerable.GetEnumerator()

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

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to