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>

屬性。

適用於