Condividi tramite


ModelValidatorProvider.GetValidators Metodo

Definizione

Ottiene una raccolta di validator per il modello.

public:
 abstract System::Collections::Generic::IEnumerable<System::Web::ModelBinding::ModelValidator ^> ^ GetValidators(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context);
public abstract System.Collections.Generic.IEnumerable<System.Web.ModelBinding.ModelValidator> GetValidators (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context);
abstract member GetValidators : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext -> seq<System.Web.ModelBinding.ModelValidator>
Public MustOverride Function GetValidators (metadata As ModelMetadata, context As ModelBindingExecutionContext) As IEnumerable(Of ModelValidator)

Parametri

metadata
ModelMetadata

Metadati.

context
ModelBindingExecutionContext

Contesto di esecuzione.

Restituisce

IEnumerable<ModelValidator>

Validator.

Si applica a