ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Konstruktor

Definition

Initialisiert eine neue Instanz der ModelBindingExecutionContext Klasse, wobei der HTTP-Kontext und der Modellstatus verwendet werden.

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)

Parameter

httpContext
HttpContextBase

Der HTTP-Kontext.

modelState
ModelStateDictionary

Der Modellzustand.

Ausnahmen

Der httpContext Parameter ist modelStatenull.

Gilt für: