Condividi tramite


CachedDataAnnotationsModelMetadata Costruttori

Definizione

Overload

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Inizializza una nuova istanza della CachedDataAnnotationsModelMetadata classe utilizzando la funzione di accesso prototipo e modello.

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

Inizializza una nuova istanza della CachedDataAnnotationsModelMetadata classe utilizzando il provider, il tipo di contenitore, il tipo di modello, il nome della proprietà e gli attributi.

CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)

Inizializza una nuova istanza della CachedDataAnnotationsModelMetadata classe utilizzando la funzione di accesso prototipo e modello.

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

Parametri

prototype
CachedDataAnnotationsModelMetadata

Prototipo.

modelAccessor
Func<Object>

Funzione di accesso del modello.

Si applica a

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

Inizializza una nuova istanza della CachedDataAnnotationsModelMetadata classe utilizzando il provider, il tipo di contenitore, il tipo di modello, il nome della proprietà e gli attributi.

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

Parametri

containerType
Type

Tipo di contenitore.

modelType
Type

Tipo di modello.

propertyName
String

Nome della proprietà.

attributes
IEnumerable<Attribute>

Attributi.

Si applica a