InterfaceMapping Struktur
Definition
Ruft die Zuordnung einer Schnittstelle zu den tatsächlichen Methoden für eine Klasse ab, die diese Schnittstelle implementiert.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
- Vererbung
- Attribute
Hinweise
Verwenden Sie InterfaceMapping die-Struktur, wenn ein Typ Schnittstellen Methoden implementiert, die andere als die von der-Schnittstelle angegebenen Methodennamen verwenden, oder wenn ein Typ mehrere Schnittstellen implementiert, die über eine Methode mit dem gleichen Namen verfügen.Use 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.
Verwenden Sie die InterfaceMapping Type.GetInterfaceMap -Methode, um eine-Struktur abzurufen.To obtain an InterfaceMapping structure, use the Type.GetInterfaceMap method.
Felder
InterfaceMethods |
Zeigt die Methoden an, die für die Schnittstelle definiert sind.Shows the methods that are defined on the interface. |
InterfaceType |
Zeigt den Typ an, der die Schnittstelle darstellt.Shows the type that represents the interface. |
TargetMethods |
Zeigt die Methoden an, die die Schnittstelle implementieren.Shows the methods that implement the interface. |
TargetType |
Stellt den Typ dar, der zum Erstellen der Schnittstellenzuordnung verwendet wurde.Represents the type that was used to create the interface mapping. |