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

属性名称。

返回

元数据类的原型实例的容器。

适用于