Compartilhar via


IModelValidator.Validate(ModelValidationContext) Método

Definição

Valida o valor do modelo.

public:
 System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationResult ^> ^ Validate(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContext ^ context);
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult> Validate (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext context);
abstract member Validate : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext -> seq<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult>
Public Function Validate (context As ModelValidationContext) As IEnumerable(Of ModelValidationResult)

Parâmetros

Retornos

Uma lista de indicação dos ModelValidationResult resultados da validação do valor do modelo.

Aplica-se a