InterfaceMapping 结构

定义

将某个接口的映射检索到实现该接口的类上的实际方法中。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
继承
InterfaceMapping
属性

注解

如果某个类型实现的接口方法使用的方法名称不是接口指定的类型, 或者当某一类型实现多个具有相同名称的方法的接口时, 请使用结构。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

显示在接口上定义的方法。Shows the methods that are defined on the interface.

InterfaceType

显示表示接口的类型。Shows the type that represents the interface.

TargetMethods

显示实现接口的方法。Shows the methods that implement the interface.

TargetType

表示用于创建接口映射的类型。Represents the type that was used to create the interface mapping.

适用于

另请参阅