MutableObjectModelBinder.BindModel Method (ModelBindingExecutionContext, ModelBindingContext)
.NET Framework (current version)
Binds the model by using the specified execution context and binding context.
Assembly: System.Web (in System.Web.dll)
Public Overridable Function BindModel ( modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext ) As Boolean
Parameters
- modelBindingExecutionContext
-
Type:
System.Web.ModelBinding.ModelBindingExecutionContext
The execution context.
- bindingContext
-
Type:
System.Web.ModelBinding.ModelBindingContext
The binding context.
| Exception | Condition |
|---|---|
| InvalidOperationException | The model could not be bound because one or more required properties are missing. (The message specifies the first missing property.) |
.NET Framework
Available since 4.5
Available since 4.5
Show: