Partilhar via


ValidatorCache.GetValidators(ModelMetadata, IModelValidatorProvider) Método

Definição

Obtenha os validadores de um modelo.

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IModelValidator ^> ^ GetValidators(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IModelValidatorProvider ^ validatorProvider);
public System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidator> GetValidators (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider);
member this.GetValidators : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidator>
Public Function GetValidators (metadata As ModelMetadata, validatorProvider As IModelValidatorProvider) As IReadOnlyList(Of IModelValidator)

Parâmetros

metadata
ModelMetadata

Os metadados do modelo.

validatorProvider
IModelValidatorProvider

O provedor de validador.

Retornos

Uma lista de validadores de modelo.

Aplica-se a