TypeMapAttribute<TTypeMapGroup> 构造函数

定义

重载

TypeMapAttribute<TTypeMapGroup>(String, Type)

Source:
TypeMapAttribute.cs
Source:
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)

Source:
TypeMapAttribute.cs
Source:
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

剪裁器用于确定类型映射包含的类型。

属性

注解

仅当剪裁使用 TypetrimTarget表示的类型检查观察类型检查时,此映射才包含在类型映射中。

适用于