ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Konstruktor

Definice

Inicializuje novou instanci ModelBindingExecutionContext třídy pomocí kontextu HTTP a stavu modelu.

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)

Parametry

httpContext
HttpContextBase

Kontext HTTP.

modelState
ModelStateDictionary

Stav modelu.

Výjimky

Parametr httpContext je modelStatenull.

Platí pro