KeyValuePairModelBinder<TKey, TValue> Class

Maps a browser request to a key/value pair data object.

Inheritance Hierarchy

System.Object
  System.Web.Http.ModelBinding.Binders.KeyValuePairModelBinder<TKey, TValue>

Namespace:  System.Web.Http.ModelBinding.Binders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public NotInheritable Class KeyValuePairModelBinder(Of TKey, TValue) _
    Implements IModelBinder
'Usage
Dim instance As KeyValuePairModelBinder(Of TKey, TValue)
public sealed class KeyValuePairModelBinder<TKey, TValue> : IModelBinder
generic<typename TKey, typename TValue>
public ref class KeyValuePairModelBinder sealed : IModelBinder
[<SealedAttribute>]
type KeyValuePairModelBinder<'TKey, 'TValue> =  
    class
        interface IModelBinder
    end
JScript does not support generic types and methods.

Type Parameters

  • TKey
    The type of the key.
  • TValue
    The type of the value.

The KeyValuePairModelBinder<TKey, TValue> type exposes the following members.

Constructors

  Name Description
Public method KeyValuePairModelBinder<TKey, TValue> Initializes a new instance of the KeyValuePairModelBinder<TKey, TValue> class.

Top

Methods

  Name Description
Public method BindModel Binds the model by using the specified execution context and binding context.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (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