InterfaceMapping 結構
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將介面的對應擷取到實作該介面之類別上的實際方法中。
public value class InterfaceMapping
C#
public struct InterfaceMapping
C#
[System.Runtime.InteropServices.ComVisible(true)]
public struct InterfaceMapping
type InterfaceMapping = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
type InterfaceMapping = struct
Public Structure InterfaceMapping
- 繼承
- 屬性
InterfaceMapping當型別實作使用介面所指定之方法名稱的介面方法時,或是當型別實作多個具有相同名稱之方法的介面時,請使用 結構。
若要取得 InterfaceMapping 結構,請使用 Type.GetInterfaceMap 方法。
Interface |
顯示在介面上定義的方法。 |
Interface |
顯示表示介面的型別。 |
Target |
顯示實作介面的方法。 |
Target |
表示用於建立介面對應的型別。 |
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |