CachedDataAnnotationsModelMetadata Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>) |
Inicjuje CachedDataAnnotationsModelMetadata nowe wystąpienie klasy przy użyciu prototypu i metody dostępu modelu. |
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>) |
Inicjuje CachedDataAnnotationsModelMetadata nowe wystąpienie klasy przy użyciu dostawcy, typu kontenera, typu modelu, nazwy właściwości i atrybutów. |
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadata, Func<Object>)
Inicjuje CachedDataAnnotationsModelMetadata nowe wystąpienie klasy przy użyciu prototypu i metody dostępu modelu.
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))
Parametry
- prototype
- CachedDataAnnotationsModelMetadata
Prototyp.
Dotyczy
CachedDataAnnotationsModelMetadata(CachedDataAnnotationsModelMetadataProvider, Type, Type, String, IEnumerable<Attribute>)
Inicjuje CachedDataAnnotationsModelMetadata nowe wystąpienie klasy przy użyciu dostawcy, typu kontenera, typu modelu, nazwy właściwości i atrybutów.
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))
Parametry
Dostawca.
- containerType
- Type
Typ kontenera.
- modelType
- Type
Typ modelu.
- propertyName
- String
Nazwa właściwości.
- attributes
- IEnumerable<Attribute>
Atrybuty.