CachedDataAnnotationsModelMetadata 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)
使用原型和模型访问器初始化 类的新实例 CachedDataAnnotationsModelMetadata 。
public CachedDataAnnotationsModelMetadata (System.Web.Mvc.CachedDataAnnotationsModelMetadata prototype, Func<object> modelAccessor);
new System.Web.Mvc.CachedDataAnnotationsModelMetadata : System.Web.Mvc.CachedDataAnnotationsModelMetadata * Func<obj> -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Public Sub New (prototype As CachedDataAnnotationsModelMetadata, modelAccessor As Func(Of Object))
参数
- prototype
- CachedDataAnnotationsModelMetadata
原型。
适用于
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)
使用提供程序、容器类型、模型类型、属性名称和特性初始化 类的新实例 CachedDataAnnotationsModelMetadata 。
public CachedDataAnnotationsModelMetadata (System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, System.Collections.Generic.IEnumerable<Attribute> attributes);
new System.Web.Mvc.CachedDataAnnotationsModelMetadata : System.Web.Mvc.CachedDataAnnotationsModelMetadataProvider * Type * Type * string * seq<Attribute> -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Public Sub New (provider As CachedDataAnnotationsModelMetadataProvider, containerType As Type, modelType As Type, propertyName As String, attributes As IEnumerable(Of Attribute))
参数
提供程序。
- containerType
- Type
容器类型。
- modelType
- Type
模型类型。
- propertyName
- String
属性名称。
- attributes
- IEnumerable<Attribute>
属性。