Share via


MutableObjectModelBinder.EnsureModel Method (ControllerContext, ExtensibleModelBindingContext)

 

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

Namespace:   Microsoft.Web.Mvc.ModelBinding
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

protected virtual void EnsureModel(
    ControllerContext controllerContext,
    ExtensibleModelBindingContext bindingContext
)
protected:
virtual void EnsureModel(
    ControllerContext^ controllerContext,
    ExtensibleModelBindingContext^ bindingContext
)
abstract EnsureModel : 
        controllerContext:ControllerContext *
        bindingContext:ExtensibleModelBindingContext -> unit
override EnsureModel : 
        controllerContext:ControllerContext *
        bindingContext:ExtensibleModelBindingContext -> unit
Protected Overridable Sub EnsureModel (
    controllerContext As ControllerContext,
    bindingContext As ExtensibleModelBindingContext
)

Parameters

See Also

MutableObjectModelBinder Class
Microsoft.Web.Mvc.ModelBinding Namespace

Return to top