StringLengthAttributeAdapter Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe StringLengthAttributeAdapter.
public StringLengthAttributeAdapter (System.Web.Mvc.ModelMetadata metadata, System.Web.Mvc.ControllerContext context, System.ComponentModel.DataAnnotations.StringLengthAttribute attribute);
new System.Web.Mvc.StringLengthAttributeAdapter : System.Web.Mvc.ModelMetadata * System.Web.Mvc.ControllerContext * System.ComponentModel.DataAnnotations.StringLengthAttribute -> System.Web.Mvc.StringLengthAttributeAdapter
Public Sub New (metadata As ModelMetadata, context As ControllerContext, attribute As StringLengthAttribute)
Paramètres
- metadata
- ModelMetadata
Métadonnées du modèle.
- context
- ControllerContext
Contexte du contrôleur.
- attribute
- StringLengthAttribute
Attribut de la longueur de chaîne.