ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Konstruktor

Definíció

Inicializálja az osztály új példányát a ModelBindingExecutionContext HTTP-környezet és a modellállapot használatával.

public:
 ModelBindingExecutionContext(System::Web::HttpContextBase ^ httpContext, System::Web::ModelBinding::ModelStateDictionary ^ modelState);
public ModelBindingExecutionContext(System.Web.HttpContextBase httpContext, System.Web.ModelBinding.ModelStateDictionary modelState);
new System.Web.ModelBinding.ModelBindingExecutionContext : System.Web.HttpContextBase * System.Web.ModelBinding.ModelStateDictionary -> System.Web.ModelBinding.ModelBindingExecutionContext
Public Sub New (httpContext As HttpContextBase, modelState As ModelStateDictionary)

Paraméterek

httpContext
HttpContextBase

A HTTP-környezet.

modelState
ModelStateDictionary

A modell állapota.

Kivételek

A httpContext vagy modelState paraméter a következő null: .

A következőre érvényes: