TypeMapAttribute<TTypeMapGroup> Constructeurs

Définition

Surcharges

TypeMapAttribute<TTypeMapGroup>(String, Type)

Source:
TypeMapAttribute.cs
Source:
TypeMapAttribute.cs

Initialise une nouvelle instance de 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)

Paramètres

value
String

Représentation sous forme de chaîne de la clé.

target
Type

Valeur de type.

Remarques

Ce mappage est inséré de manière inconditionnelle dans la carte de type.

S’applique à

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

Source:
TypeMapAttribute.cs
Source:
TypeMapAttribute.cs

Initialise une nouvelle instance de 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)

Paramètres

value
String

Représentation sous forme de chaîne de clé.

target
Type

Valeur de type.

trimTarget
Type

Type utilisé par le découpage pour déterminer l’inclusion de carte de type.

Attributs

Remarques

Ce mappage n’est inclus dans le mappage de types que si le découpage observe une vérification de type à l’aide de l’élément Type représenté par trimTarget.

S’applique à