DataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider, Type, Func<Object>, Type, String, DisplayColumnAttribute) DataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider, Type, Func<Object>, Type, String, DisplayColumnAttribute) DataAnnotationsModelMetadata(DataAnnotationsModelMetadataProvider, Type, Func<Object>, Type, String, DisplayColumnAttribute) Constructor

정의

DataAnnotationsModelMetadata 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the DataAnnotationsModelMetadata class.

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

매개 변수

containerType
Type Type Type

컨테이너의 형식 또는 컨테이너가 없는 경우 null입니다.The type of the container, or null if there is no container.

modelAccessor
Func<Object>

모델 접근자입니다.The model accessor.

modelType
Type Type Type

모델의 형식입니다.The type of the model.

propertyName
String String String

속성 이름이거나, 모델이 속성이 아닐 경우 null입니다.The name of the property, or null if the model is not a property.

displayColumnAttribute
DisplayColumnAttribute DisplayColumnAttribute DisplayColumnAttribute

표시 열 특성입니다.The display column attribute.

적용 대상