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
Public method DictionaryModelBinder<TKey, TValue> Initializes a new instance of the DictionaryModelBinder<TKey, TValue> class.

Top

Methods

  Name Description
Public method BindModel Binds the model by using the specified execution context and binding context. (Inherited from CollectionModelBinder<TElement>.)
Protected method CreateOrReplaceCollection Converts the collection to a dictionary. (Overrides CollectionModelBinder<TElement>.CreateOrReplaceCollection(HttpActionContext, ModelBindingContext, IList<TElement>).)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.

See Also

Reference

System.Web.Http.ModelBinding.Binders Namespace