Condividi tramite


MutableObjectModelBinder.EnsureModel Metodo

Definizione

Crea un'istanza di modello se un'istanza non esiste ancora nel contesto di associazione.

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)

Parametri

modelBindingExecutionContext
ModelBindingExecutionContext

Contesto di esecuzione.

bindingContext
ModelBindingContext

Il contesto di associazione.

Si applica a