DataAnnotationsModelMetadata Конструктор

Определение

Инициализирует новый экземпляр класса DataAnnotationsModelMetadata.

public:
 DataAnnotationsModelMetadata(System::Web::ModelBinding::DataAnnotationsModelMetadataProvider ^ provider, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName, System::ComponentModel::DataAnnotations::DisplayColumnAttribute ^ displayColumnAttribute);
public DataAnnotationsModelMetadata (System.Web.ModelBinding.DataAnnotationsModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName, System.ComponentModel.DataAnnotations.DisplayColumnAttribute displayColumnAttribute);
new System.Web.ModelBinding.DataAnnotationsModelMetadata : System.Web.ModelBinding.DataAnnotationsModelMetadataProvider * Type * Func<obj> * Type * string * System.ComponentModel.DataAnnotations.DisplayColumnAttribute -> System.Web.ModelBinding.DataAnnotationsModelMetadata
Public Sub New (provider As DataAnnotationsModelMetadataProvider, containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String, displayColumnAttribute As DisplayColumnAttribute)

Параметры

provider
DataAnnotationsModelMetadataProvider

Объект поставщика.

containerType
Type

Тип контейнера или значение null, если контейнер не существует.

modelAccessor
Func<Object>

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

modelType
Type

Тип модели.

propertyName
String

Имя свойства или null, если модель не является свойством.

displayColumnAttribute
DisplayColumnAttribute

Атрибут отображаемого столбца.

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