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
属性名称。
返回
元数据类的原型实例的容器。