다음을 통해 공유


AssociatedMetadataProvider.CreateMetadata 메서드

정의

파생 클래스에서 재정의되면 속성에 대한 모델 메타데이터를 만듭니다.

protected abstract System.Web.Mvc.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
abstract member CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Protected MustOverride 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

속성의 이름입니다.

반환

이 속성에 대한 모델 메타데이터입니다.

적용 대상