DictionaryModelBinderProvider.GetBinder Method (ModelBindingExecutionContext, ModelBindingContext)

.NET Framework (current version)
 

Returns a model binder for a dictionary.

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

public override IModelBinder GetBinder(
	ModelBindingExecutionContext modelBindingExecutionContext,
	ModelBindingContext bindingContext
)

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

bindingContext
Type: System.Web.ModelBinding.ModelBindingContext

The binding context.

Return Value

Type: System.Web.ModelBinding.IModelBinder

The model binder, or null if the attempt to get a model binder is unsuccessful.

The attempt to get a model binder will be unsuccessful if the value provider's ContainsPrefix method returns false.

.NET Framework
Available since 4.5
Return to top
Show: