SimpleModelBinderProvider.GetBinder Method (ModelBindingExecutionContext, ModelBindingContext)
.NET Framework (current version)
Returns a model binder by using the specified execution context and binding context.
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 binding context.
Return Value
Type: System.Web.ModelBinding.IModelBinderThe model binder, or null if the attempt to get a model binder is unsuccessful.
| Exception | Condition |
|---|---|
| ArgumentNullException | modelBindingExecutionContext or bindingContext is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: