TypeMapAttribute<TTypeMapGroup> Constructors

Definitie

Overloads

TypeMapAttribute<TTypeMapGroup>(String, Type)

Bron:
TypeMapAttribute.cs
Bron:
TypeMapAttribute.cs

Initialiseert een nieuw exemplaar van 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)

Parameters

value
String

De tekenreeksweergave van de sleutel.

target
Type

De waarde van het type.

Opmerkingen

Deze toewijzing wordt voorwaardelijke ingevoegd in de typekaart.

Van toepassing op

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

Bron:
TypeMapAttribute.cs
Bron:
TypeMapAttribute.cs

Initialiseert een nieuw exemplaar van 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)

Parameters

value
String

De tekenreeksweergave van de sleutel.

target
Type

De waarde van het type.

trimTarget
Type

Het type dat door de trimmer wordt gebruikt om het type kaartopname te bepalen.

Kenmerken

Opmerkingen

Deze toewijzing wordt alleen opgenomen in de typekaart als bij het bijsnijden een typecontrole wordt waargenomen met behulp van de Type vertegenwoordigd door trimTarget.

Van toepassing op