Langage

MinLengthAttributeAdapter Constructeur

Définition

Initialise une nouvelle instance de la classe MinLengthAttributeAdapter.

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

Paramètres

metadata
ModelMetadata

Spécifie le conteneur de métadonnées d’un modèle.

context
ModelBindingExecutionContext

Spécifie le conteneur pour toutes les informations externes au système de liaison de modèle.

attribute
MinLengthAttribute

Spécifie la longueur minimale des données de tableau ou de chaîne autorisées dans une propriété.

S’applique à