DataAnnotationsModelMetadataProvider.CreateMetadata 메서드

정의

지정된 모델에 대한 메타데이터를 만듭니다.

protected:
 override System::Web::ModelBinding::ModelMetadata ^ CreateMetadata(System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName);
protected override System.Web.ModelBinding.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.ModelBinding.ModelMetadata
Protected Overrides 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

컨테이너의 형식 또는 컨테이너가 없는 경우 null입니다.

modelAccessor
Func<Object>

모델 접근자입니다.

modelType
Type

모델의 형식입니다.

propertyName
String

속성 이름이거나, 모델이 속성이 아닐 경우 null입니다.

반환

ModelMetadata

모델의 메타데이터입니다.

적용 대상