Partager via


DataAnnotationsModelValidator Constructeur

Définition

Initialise une nouvelle instance de la classe DataAnnotationsModelValidator.

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

Paramètres

metadata
ModelMetadata

Métadonnées.

context
ModelBindingExecutionContext

Contexte d'exécution.

attribute
ValidationAttribute

Attribut de validation.

S’applique à