Partager via


MaxLengthAttributeAdapter Constructeur

Définition

Initialise une nouvelle instance de la classe MaxLengthAttribute.

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

Paramètres

metadata
ModelMetadata

Métadonnées du modèle.

context
ControllerContext

Contexte du contrôleur.

attribute
MaxLengthAttribute

Attribut MaxLength.

S’applique à