Partilhar via


ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Construtor

Definição

Inicializa uma nova instância da classe ModelBindingExecutionContext usando o contexto HTTP e o estado do modelo.

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)

Parâmetros

httpContext
HttpContextBase

O contexto HTTP.

modelState
ModelStateDictionary

O estado do modelo.

Exceções

O parâmetro httpContext ou modelState é null.

Aplica-se a