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
-
ModelBinderDictionary
- Implements
-
ICollection<KeyValuePair<Type,IModelBinder>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<Type,IModelBinder> IEnumerable<KeyValuePair<Type,IModelBinder>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Constructors
ModelBinderDictionary() |
Initializes a new instance of the ModelBinderDictionary class. |
Properties
Count |
Gets the number of items in the dictionary. |
DefaultBinder |
Gets or sets the default model binder. |
IsReadOnly |
Gets a value that indicates whether the dictionary is read-only. |
Item[Type] |
Gets or sets the specified key in an object that implements the IModelBinder interface. |
Keys |
Gets a collection that contains the keys in the dictionary. |
Values |
Gets a collection that contains the values in the model binder dictionary. |
Methods
Add(KeyValuePair<Type,IModelBinder>) |
Adds the specified item to the dictionary. |
Add(Type, IModelBinder) |
Adds the specified item to the dictionary. |
Clear() |
Removes all items from the dictionary. |
Contains(KeyValuePair<Type,IModelBinder>) |
Determines whether the model binder dictionary contains a specified value. |
ContainsKey(Type) |
Determines whether the model binder dictionary contains an element that has the specified key. |
CopyTo(KeyValuePair<Type,IModelBinder>[], Int32) |
Copies the elements of the model binder dictionary to an array, starting at a specified index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that can be used to iterate through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(KeyValuePair<Type,IModelBinder>) |
Removes the first occurrence of the specified element from the model binder dictionary. |
Remove(Type) |
Removes the element that has the specified key from the model binder dictionary. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryGetValue(Type, IModelBinder) |
Gets the value that is associated with the specified key. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Returns an enumerator that can be used to iterate through a collection. |
Extension Methods
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
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) |
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>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
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) |
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>) |
Returns a collection of the child elements of every element and document in the source collection. |
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>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |