Export (0) Print
Expand All

GenericModelBinderProvider.GetBinder Method

.NET Framework 4.6 and 4.5

Gets a model binder

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
A model binder, or null if the attempt to get a model binder is unsuccessful.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft