Partager via


StringLengthAttributeAdapter Constructeur

Définition

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.

S’applique à