Freigeben über


AssociatedMetadataProvider.CreateMetadata Methode

Definition

Erstellt beim Überschreiben in eine abgeleitete Klasse die Modellmetadaten für die Eigenschaft.

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

Parameter

attributes
IEnumerable<Attribute>

Der Satz von Attributen.

containerType
Type

Der Typ des Containers.

modelAccessor
Func<Object>

Der Modellaccessor.

modelType
Type

Der Typ des Modells.

propertyName
String

Der Name der Eigenschaft.

Gibt zurück

Die Modellmetadaten für die Eigenschaft.

Gilt für: