TypeMapAttribute<TTypeMapGroup> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| TypeMapAttribute<TTypeMapGroup>(String, Type) |
初始化 的新 TypeMapAttribute<TTypeMapGroup>实例。 |
| TypeMapAttribute<TTypeMapGroup>(String, Type, Type) |
初始化 的新 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
剪裁器用于确定类型映射包含的类型。
- 属性
注解
仅当剪裁使用 Type 所 trimTarget表示的类型检查观察类型检查时,此映射才包含在类型映射中。