DataAnnotationsModelMetadata 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 DataAnnotationsModelMetadataProvider.
public DataAnnotationsModelMetadata(System.Web.Mvc.DataAnnotationsModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName, System.ComponentModel.DataAnnotations.DisplayColumnAttribute displayColumnAttribute);
new System.Web.Mvc.DataAnnotationsModelMetadata : System.Web.Mvc.DataAnnotationsModelMetadataProvider * Type * Func<obj> * Type * string * System.ComponentModel.DataAnnotations.DisplayColumnAttribute -> System.Web.Mvc.DataAnnotationsModelMetadata
Public Sub New (provider As DataAnnotationsModelMetadataProvider, containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String, displayColumnAttribute As DisplayColumnAttribute)
Paramètres
- provider
- DataAnnotationsModelMetadataProvider
Fournisseur de métadonnées de modèle d'annotations de données.
- containerType
- Type
Type du conteneur.
- modelType
- Type
Type du modèle.
- propertyName
- String
Nom de la propriété.
- displayColumnAttribute
- DisplayColumnAttribute
Attribut de colonne d'affichage.