Partager via


ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Constructeur

Définition

Initialise une nouvelle instance de la classe ModelBindingExecutionContext à l'aide du contexte HTTP et de l'état du modèle.

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ètres

httpContext
HttpContextBase

Contexte HTTP.

modelState
ModelStateDictionary

État du modèle.

Exceptions

Le paramètre httpContext ou modelState est null.

S’applique à