閱讀英文版本

分享方式:


InterfaceMapping 結構

定義

將介面的對應擷取到實作該介面之類別上的實際方法中。

C#
public struct InterfaceMapping
C#
[System.Runtime.InteropServices.ComVisible(true)]
public struct InterfaceMapping
繼承
InterfaceMapping
屬性

備註

InterfaceMapping當型別實作使用介面所指定之方法名稱的介面方法時,或是當型別實作多個具有相同名稱之方法的介面時,請使用 結構。

若要取得 InterfaceMapping 結構,請使用 Type.GetInterfaceMap 方法。

欄位

InterfaceMethods

顯示在介面上定義的方法。

InterfaceType

顯示表示介面的型別。

TargetMethods

顯示實作介面的方法。

TargetType

表示用於建立介面對應的型別。

適用於

產品 版本
.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

另請參閱