語言

TypeMapAttribute<TTypeMapGroup> 建構函式

定義

多載

TypeMapAttribute<TTypeMapGroup>(String, Type)

來源:
TypeMapAttribute.cs
來源:
TypeMapAttribute.cs

初始化 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)

參數

value
String

鑰匙的字串表示。

target
Type

型別值。

備註

此映射無條件插入型態映射中。

適用於

TypeMapAttribute<TTypeMapGroup>(String, Type, Type)

來源:
TypeMapAttribute.cs
來源:
TypeMapAttribute.cs

初始化 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)

參數

value
String

鍵的字串表示。

target
Type

型別值。

trimTarget
Type

修剪器用來判定類型映射包含的類型。

屬性

備註

只有當修剪時觀察到使用以 trimTarget表示的Type類型檢查時,這個映射才會包含在型態映射中。

適用於