Udostępnij za pośrednictwem


CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Metoda

Definicja

Po przesłonięciu w klasie pochodnej tworzy buforowane metadane modelu dla właściwości .

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

Parametry

attributes
IEnumerable<Attribute>

Atrybuty.

containerType
Type

Typ kontenera.

modelAccessor
Func<Object>

Akcesorium modelu.

modelType
Type

Typ modelu.

propertyName
String

Nazwa właściwości.

Zwraca

Buforowane metadane modelu dla właściwości.

Dotyczy