TypeConverterModelBinderProvider.GetBinder Method (ModelBindingExecutionContext, ModelBindingContext)

.NET Framework (current version)
 

Returns a model binder for a model that requires type conversion.

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

Public Overrides Function GetBinder (
	modelBindingExecutionContext As ModelBindingExecutionContext,
	bindingContext As ModelBindingContext
) As IModelBinder

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 type cannot be converted or there is no value to convert.

.NET Framework
Available since 4.5
Return to top
Show: