CachedDataAnnotationsModelMetadata Конструкторы

Определение

Перегрузки

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Инициализирует новый экземпляр класса с CachedDataAnnotationsModelMetadata помощью прототипа и метода доступа модели.

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)

Инициализирует новый экземпляр CachedDataAnnotationsModelMetadata класса с помощью поставщика, типа контейнера, типа модели, имени свойства и атрибутов.

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Инициализирует новый экземпляр класса с CachedDataAnnotationsModelMetadata помощью прототипа и метода доступа модели.

public CachedDataAnnotationsModelMetadata (System.Web.Mvc.CachedDataAnnotationsModelMetadata prototype, Func<object> modelAccessor);
new System.Web.Mvc.CachedDataAnnotationsModelMetadata : System.Web.Mvc.CachedDataAnnotationsModelMetadata * Func<obj> -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Public Sub New (prototype As CachedDataAnnotationsModelMetadata, modelAccessor As Func(Of Object))

Параметры

prototype
CachedDataAnnotationsModelMetadata

Прототип.

modelAccessor
Func<Object>

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

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

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)

Инициализирует новый экземпляр CachedDataAnnotationsModelMetadata класса с помощью поставщика, типа контейнера, типа модели, имени свойства и атрибутов.

public CachedDataAnnotationsModelMetadata (System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, System.Collections.Generic.IEnumerable<Attribute> attributes);
new System.Web.Mvc.CachedDataAnnotationsModelMetadata : System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider * Type * Type * string * seq<Attribute> -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Public Sub New (provider As CachedDataAnnotationsModelMetadataProvider, containerType As Type, modelType As Type, propertyName As String, attributes As IEnumerable(Of Attribute))

Параметры

provider
CachedDataAnnotationsModelMetadataProvider

Поставщик.

containerType
Type

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

modelType
Type

Тип модели.

propertyName
String

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

attributes
IEnumerable<Attribute>

Атрибуты.

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