MutableObjectModelBinder.EnsureModel Method (ModelBindingExecutionContext, ModelBindingContext)

.NET Framework (current version)
 

Creates a model instance if an instance does not yet exist in the binding context.

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

Protected Overridable Sub EnsureModel (
	modelBindingExecutionContext As ModelBindingExecutionContext,
	bindingContext As ModelBindingContext
)

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

bindingContext
Type: System.Web.ModelBinding.ModelBindingContext

The binding context.

.NET Framework
Available since 4.5
Return to top
Show: