MutableObjectModelBinder.EnsureModel 方法

定义

若实例仍不存在于绑定上下文,则创建模型实例。

protected:
 virtual void EnsureModel(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
protected virtual void EnsureModel (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
abstract member EnsureModel : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> unit
override this.EnsureModel : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> unit
Protected Overridable Sub EnsureModel (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext)

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

bindingContext
ModelBindingContext

绑定上下文。

适用于