共用方式為


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

繫結內容。

適用於