TypeMapAttribute<TTypeMapGroup> Costruttori

Definizione

Overload

TypeMapAttribute<TTypeMapGroup>(String, Type)

Origine:
TypeMapAttribute.cs
Origine:
TypeMapAttribute.cs

Inizializza una nuova istanza di TypeMapAttribute<TTypeMapGroup>.

public:
 TypeMapAttribute(System::String ^ value, Type ^ target);
public TypeMapAttribute(string value, Type target);
new System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup> : string * Type -> System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup>
Public Sub New (value As String, target As Type)

Parametri

value
String

Rappresentazione di stringa della chiave.

target
Type

Valore del tipo.

Commenti

Questo mapping viene inserito in modo incondizionato nella mappa dei tipi.

Si applica a

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

Origine:
TypeMapAttribute.cs
Origine:
TypeMapAttribute.cs

Inizializza una nuova istanza di TypeMapAttribute<TTypeMapGroup>.

public:
 TypeMapAttribute(System::String ^ value, Type ^ target, Type ^ trimTarget);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Interop types may be removed by trimming")]
public TypeMapAttribute(string value, Type target, Type trimTarget);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Interop types may be removed by trimming")>]
new System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup> : string * Type * Type -> System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup>
Public Sub New (value As String, target As Type, trimTarget As Type)

Parametri

value
String

Rappresentazione di stringa della chiave.

target
Type

Valore del tipo.

trimTarget
Type

Tipo utilizzato dal trimmer per determinare l'inclusione della mappa dei tipi.

Attributi

Commenti

Questo mapping è incluso nella mappa dei tipi solo se il taglio osserva un controllo del tipo usando l'oggetto Type rappresentato da trimTarget.

Si applica a