CachedDataAnnotationsModelMetadata 构造函数

定义

重载

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

使用原型和模型访问器初始化 类的新实例 CachedDataAnnotationsModelMetadata

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)

使用提供程序、容器类型、模型类型、属性名称和特性初始化 类的新实例 CachedDataAnnotationsModelMetadata

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))

参数

modelAccessor
Func<Object>

模型访问器。

适用于

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>

属性。

适用于