CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Метод

Определение

При переопределении в производном классе создает метаданные кэшированной модели для свойства.

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

Параметры

attributes
IEnumerable<Attribute>

Атрибуты.

containerType
Type

Тип контейнера.

modelAccessor
Func<Object>

Метод доступа модели.

modelType
Type

Тип модели.

propertyName
String

Имя свойства.

Возвращаемое значение

Метаданные кэшированной модели для свойства.

Применяется к