InterfaceMapping InterfaceMapping InterfaceMapping InterfaceMapping Struct

定義

將介面的對應擷取到實作該介面的類別上的實質方法中。Retrieves the mapping of an interface into the actual methods on a class that implements that interface.

public value class InterfaceMapping
[System.Runtime.InteropServices.ComVisible(true)]
public struct InterfaceMapping
type InterfaceMapping = struct
Public Structure InterfaceMapping
繼承
InterfaceMappingInterfaceMappingInterfaceMappingInterfaceMapping
屬性

備註

當類型實行的介面方法使用的方法名稱不是由介面所指定, 或當類型實具有具有相同名稱之方法的多個介面時, 請使用結構。InterfaceMappingUse the InterfaceMapping structure when a type implements interface methods that use method names other than those specified by the interface, or when a type implements multiple interfaces which have a method with the same name.

若要取得InterfaceMapping結構, 請Type.GetInterfaceMap使用方法。To obtain an InterfaceMapping structure, use the Type.GetInterfaceMap method.

欄位

InterfaceMethods InterfaceMethods InterfaceMethods InterfaceMethods

顯示在介面上定義的方法。Shows the methods that are defined on the interface.

InterfaceType InterfaceType InterfaceType InterfaceType

顯示表示介面的型別。Shows the type that represents the interface.

TargetMethods TargetMethods TargetMethods TargetMethods

顯示實作介面的方法。Shows the methods that implement the interface.

TargetType TargetType TargetType TargetType

表示用於建立介面對應的型別。Represents the type that was used to create the interface mapping.

適用於

另請參閱