Partager via


DataAnnotationsModelMetadataProvider.CreateMetadata Méthode

Définition

Obtient les métadonnées de la propriété spécifiée.

protected override System.Web.Mvc.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
override this.CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Protected Overrides Function CreateMetadata (attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String) As ModelMetadata

Paramètres

attributes
IEnumerable<Attribute>

Attributs.

containerType
Type

Type du conteneur.

modelAccessor
Func<Object>

Accesseur modèle.

modelType
Type

Type du modèle.

propertyName
String

Nom de la propriété.

Retours

Métadonnées de la propriété.

S’applique à