Share via


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
System_CAPS_pubmethod DictionaryModelBinder<TKey, TValue>()

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

Methods

Name Description
System_CAPS_pubmethod BindModel(ControllerContext, ExtensibleModelBindingContext)

Binds the model by using the specified controller context and binding context.(Inherited from CollectionModelBinder<TElement>.)

System_CAPS_protmethod CreateOrReplaceCollection(ControllerContext, ExtensibleModelBindingContext, IList<KeyValuePair<TKey, TValue>>)

Converts the collection to a dictionary.(Overrides CollectionModelBinder<TElement>.CreateOrReplaceCollection(ControllerContext, ExtensibleModelBindingContext, IList<TElement>).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(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