Share via


MinLengthAttributeAdapter Constructeur

Définition

Initialise une nouvelle instance de la classe MinLenghtAttribute.

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

Paramètres

metadata
ModelMetadata

Métadonnées du modèle.

context
ControllerContext

Contexte du contrôleur.

attribute
MinLengthAttribute

Attribut de longueur minimale.

S’applique à