CachedDataAnnotationsModelMetadataProvider.CreateMetadataPrototype 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回中繼資料類別的容器原型執行個體。
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
屬性名稱。
傳回
中繼資料類別的容器原型執行個體。