다음을 통해 공유


CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata 메서드

정의

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

protected override sealed System.Web.Mvc.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.Mvc.ModelMetadata
Protected Overrides NotOverridable 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

속성 이름입니다.

반환

속성에 대해 캐시된 모델 메타데이터입니다.

적용 대상