DictionaryModelBinder<TKey, TValue> Class
Maps a browser request to a dictionary data object.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Inheritance Hierarchy
System.Object
Microsoft.Web.Mvc.ModelBinding.CollectionModelBinder<TElement>
Microsoft.Web.Mvc.ModelBinding.DictionaryModelBinder<TKey, TValue>
Syntax
public class DictionaryModelBinder<TKey, TValue> : CollectionModelBinder<KeyValuePair<TKey, TValue>>
generic<typename TKey, typename TValue>
public ref class DictionaryModelBinder : CollectionModelBinder<KeyValuePair<TKey, TValue>>
type DictionaryModelBinder<'TKey, 'TValue> =
class
inherit CollectionModelBinder<KeyValuePair<'TKey, 'TValue>>
end
Public Class DictionaryModelBinder(Of TKey, TValue)
Inherits CollectionModelBinder(Of KeyValuePair(Of TKey, TValue))
Type Parameters
- TKey
The type of the key.
- TValue
The type of the value.
Constructors
Name | Description | |
---|---|---|
![]() |
DictionaryModelBinder<TKey, TValue>() | Initializes a new instance of the DictionaryModelBinder<TKey, TValue> class. |
Methods
Name | Description | |
---|---|---|
![]() |
BindModel(ControllerContext, ExtensibleModelBindingContext) | Binds the model by using the specified controller context and binding context.(Inherited from CollectionModelBinder<TElement>.) |
![]() |
CreateOrReplaceCollection(ControllerContext, ExtensibleModelBindingContext, IList<KeyValuePair<TKey, TValue>>) | Converts the collection to a dictionary.(Overrides CollectionModelBinder<TElement>.CreateOrReplaceCollection(ControllerContext, ExtensibleModelBindingContext, IList<TElement>).) |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
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
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top