Freigeben über


CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Methode

Definition

Erstellt bei Außerkraftsetzung in einer abgeleiteten Klasse die zwischengespeicherten Modellmetadaten für die Eigenschaft.

protected override sealed 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 NotOverridable 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>

Die Attribute.

containerType
Type

Der Containertyp.

modelAccessor
Func<Object>

Der Modellaccessor.

modelType
Type

Der Modelltyp.

propertyName
String

Der Eigenschaftenname.

Gibt zurück

Die zwischengespeicherten Modellmetadaten für die Eigenschaft.

Gilt für: