DictionaryModelBinder<TKey, TValue> Class
Maps a browser request to a dictionary data object.
Inheritance Hierarchy
System.Object
System.Web.Http.ModelBinding.Binders.CollectionModelBinder<KeyValuePair<TKey, TValue>>
System.Web.Http.ModelBinding.Binders.DictionaryModelBinder<TKey, TValue>
Namespace: System.Web.Http.ModelBinding.Binders
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class DictionaryModelBinder(Of TKey, TValue) _
Inherits CollectionModelBinder(Of KeyValuePair(Of TKey, TValue))
'Usage
Dim instance As DictionaryModelBinder(Of TKey, TValue)
public class DictionaryModelBinder<TKey, TValue> : CollectionModelBinder<KeyValuePair<TKey, TValue>>
generic<typename TKey, typename TValue>
public ref class DictionaryModelBinder : public CollectionModelBinder<KeyValuePair<TKey, TValue>>
type DictionaryModelBinder<'TKey, 'TValue> =
class
inherit CollectionModelBinder<KeyValuePair<'TKey, 'TValue>>
end
JScript does not support generic types and methods.
Type Parameters
- TKey
The type of the key.
- TValue
The type of the value.
The DictionaryModelBinder<TKey, TValue> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DictionaryModelBinder<TKey, TValue> | Initializes a new instance of the DictionaryModelBinder<TKey, TValue> class. |
Top
Methods
Name | Description | |
---|---|---|
BindModel | Binds the model by using the specified execution context and binding context. (Inherited from CollectionModelBinder<TElement>.) | |
CreateOrReplaceCollection | Converts the collection to a dictionary. (Overrides CollectionModelBinder<TElement>.CreateOrReplaceCollection(HttpActionContext, ModelBindingContext, IList<TElement>).) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
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.