The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ModelBinderProviderCollection::GetBinder Method (ModelBindingExecutionContext^, ModelBindingContext^)
.NET Framework (current version)
Returns the appropriate model binder for the specified execution context and binding context.
Assembly: System.Web (in System.Web.dll)
public:
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelBindingExecutionContext or the bindingContext is null. |
| InvalidOperationException | No model binder or model binder provider exists for the specified model type. |
.NET Framework
Available since 4.5
Available since 4.5
Show: