TypeMapAttribute<TTypeMapGroup> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TypeMapAttribute<TTypeMapGroup>(String, Type) |
初始化 TypeMapAttribute<TTypeMapGroup> 的新執行個體。 |
| TypeMapAttribute<TTypeMapGroup>(String, Type, Type) |
初始化 TypeMapAttribute<TTypeMapGroup> 的新執行個體。 |
TypeMapAttribute<TTypeMapGroup>(String, Type)
初始化 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<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類型檢查時,這個映射才會包含在型態映射中。