共用方式為


CachedDataAnnotationsModelMetadataProvider.CreateMetadataPrototype 方法

定義

傳回中繼資料類別的容器原型執行個體。

protected override System.Web.Mvc.CachedDataAnnotationsModelMetadata CreateMetadataPrototype (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Type modelType, string propertyName);
override this.CreateMetadataPrototype : seq<Attribute> * Type * Type * string -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Protected Overrides Function CreateMetadataPrototype (attributes As IEnumerable(Of Attribute), containerType As Type, modelType As Type, propertyName As String) As CachedDataAnnotationsModelMetadata

參數

attributes
IEnumerable<Attribute>

屬性型別。

containerType
Type

容器型別。

modelType
Type

模型型別。

propertyName
String

屬性名稱。

傳回

中繼資料類別的容器原型執行個體。

適用於