Partager via


DataAnnotationsModelMetadata Constructeur

Définition

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.

modelAccessor
Func<Object>

Accesseur modèle.

modelType
Type

Type du modèle.

propertyName
String

Nom de la propriété.

displayColumnAttribute
DisplayColumnAttribute

Attribut de colonne d'affichage.

S’applique à