Share via


KeyValuePairModelBinder<TKey, TValue> Class

 

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

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Web.Mvc.ModelBinding.KeyValuePairModelBinder<TKey, TValue>

Syntax

public sealed class KeyValuePairModelBinder<TKey, TValue> : IExtensibleModelBinder
generic<typename TKey, typename TValue>
public ref class KeyValuePairModelBinder sealed : IExtensibleModelBinder
[<Sealed>]
type KeyValuePairModelBinder<'TKey, 'TValue> = 
    class
        interface IExtensibleModelBinder
    end
Public NotInheritable Class KeyValuePairModelBinder(Of TKey, TValue)
    Implements IExtensibleModelBinder

Type Parameters

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

Constructors

Name Description
System_CAPS_pubmethod KeyValuePairModelBinder<TKey, TValue>()

Initializes a new instance of the KeyValuePairModelBinder<TKey, TValue> class.

Methods

Name Description
System_CAPS_pubmethod BindModel(ControllerContext, ExtensibleModelBindingContext)

Binds the model by using the specified execution context and binding context.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod 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