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)

abstract EnsureModel : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext -> unit
override EnsureModel : 
        modelBindingExecutionContext:ModelBindingExecutionContext *
        bindingContext:ModelBindingContext -> unit

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: