Compartilhar via


DataAnnotationsModelValidator<TAttribute> Construtor

Definição

Inicializa uma nova instância da classe DataAnnotationsModelValidator<TAttribute>.

public:
 DataAnnotationsModelValidator(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context, TAttribute attribute);
public DataAnnotationsModelValidator (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context, TAttribute attribute);
new System.Web.ModelBinding.DataAnnotationsModelValidator<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)> : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext * 'Attribute -> System.Web.ModelBinding.DataAnnotationsModelValidator<'Attribute (requires 'Attribute :> System.ComponentModel.DataAnnotations.ValidationAttribute)>
Public Sub New (metadata As ModelMetadata, context As ModelBindingExecutionContext, attribute As TAttribute)

Parâmetros

metadata
ModelMetadata

Os metadados.

context
ModelBindingExecutionContext

O contexto de execução.

attribute
TAttribute

O atributo de validação.

Aplica-se a