Edit

Share via


TypeMapAttribute<TTypeMapGroup> Constructors

Definition

Overloads

TypeMapAttribute<TTypeMapGroup>(String, Type)

Source:
TypeMapAttribute.cs

Initializes a new instance of 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

The string representation of kthe key.

target
Type

The type value.

Remarks

This mapping is unconditionally inserted into the type map.

Applies to

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

Source:
TypeMapAttribute.cs

Initializes a new instance of 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

The string representation of key.

target
Type

The type value.

trimTarget
Type

The type used by the trimmer to determine type map inclusion.

Attributes

Remarks

This mapping is only included in the type map if trimming observes a type check using the Type represented by trimTarget.

Applies to