Compartir a través de


ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) Constructor

Definición

Inicializa una instancia nueva de la clase ModelBindingExecutionContext usando el contexto HTTP y el estado del 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

Contexto HTTP.

modelState
ModelStateDictionary

Estado del modelo.

Excepciones

El parámetro httpContext o modelState es null.

Se aplica a