KeyValuePairModelBinderProvider.GetBinder Method (ModelBindingExecutionContext, ModelBindingContext)

.NET Framework (current version)
 

Returns a model binder for a key/value pair collection.

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

override GetBinder : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext -> IModelBinder

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

bindingContext
Type: System.Web.ModelBinding.ModelBindingContext

The model binding context.

Return Value

Type: System.Web.ModelBinding.IModelBinder

The model binder, or null if the value provider does not contain a key and a value.

.NET Framework
Available since 4.5
Return to top
Show: