Condividi tramite


ModelValidator(ModelMetadata, ModelBindingExecutionContext) Costruttore

Definizione

Inizializza una nuova istanza della classe ModelValidator.

protected:
 ModelValidator(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext);
protected ModelValidator (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext);
new System.Web.ModelBinding.ModelValidator : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext -> System.Web.ModelBinding.ModelValidator
Protected Sub New (metadata As ModelMetadata, modelBindingExecutionContext As ModelBindingExecutionContext)

Parametri

metadata
ModelMetadata

Metadati.

modelBindingExecutionContext
ModelBindingExecutionContext

Contesto di esecuzione.

Eccezioni

Il parametro metadata o il parametro modelBindingExecutionContext è null.

Si applica a