TypeMapAttribute<TTypeMapGroup> Konstruktoren

Definition

Überlädt

TypeMapAttribute<TTypeMapGroup>(String, Type)

Quelle:
TypeMapAttribute.cs
Quelle:
TypeMapAttribute.cs

Initialisiert eine neue instance von 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)

Parameter

value
String

Die Zeichenfolgendarstellung des Schlüssels.

target
Type

Der Typwert.

Hinweise

Diese Zuordnung wird bedingungslos in die Typzuordnung eingefügt.

Gilt für:

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

Quelle:
TypeMapAttribute.cs
Quelle:
TypeMapAttribute.cs

Initialisiert eine neue instance von 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)

Parameter

value
String

Die Zeichenfolgendarstellung des Schlüssels.

target
Type

Der Typwert.

trimTarget
Type

Der typ, der vom Trimmer zum Bestimmen der Typzuordnungseinschluss verwendet wird.

Attribute

Hinweise

Diese Zuordnung ist nur in der Typzuordnung enthalten, wenn das Kürzen eine Typüberprüfung mithilfe der Type dargestellten trimTarget.

Gilt für: