Aracılığıyla paylaş


CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, özelliği için önbelleğe alınmış model meta verilerini oluşturur.

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

Parametreler

attributes
IEnumerable<Attribute>

Öznitelikler.

containerType
Type

Kapsayıcı türü.

modelAccessor
Func<Object>

Model erişimcisi.

modelType
Type

Model türü.

propertyName
String

Özellik adı.

Döndürülenler

özelliği için önbelleğe alınmış model meta verileri.

Şunlara uygulanır