ModelValidator.GetModelValidator Metodo

Definizione

Restituisce un validator del modello composito per il modello.

public:
 static System::Web::ModelBinding::ModelValidator ^ GetModelValidator(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context);
public static System.Web.ModelBinding.ModelValidator GetModelValidator (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context);
static member GetModelValidator : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext -> System.Web.ModelBinding.ModelValidator
Public Shared Function GetModelValidator (metadata As ModelMetadata, context As ModelBindingExecutionContext) As ModelValidator

Parametri

metadata
ModelMetadata

Metadati.

context
ModelBindingExecutionContext

Contesto di esecuzione.

Restituisce

Validator del modello composito per il modello.

Si applica a