EnumBuilder.GetInterfaceMap(Type) 方法

定义

返回所请求的接口的接口映射。Returns an interface mapping for the interface requested.

public:
 override System::Reflection::InterfaceMapping GetInterfaceMap(Type ^ interfaceType);
public override System.Reflection.InterfaceMapping GetInterfaceMap (Type interfaceType);
[System.Runtime.InteropServices.ComVisible(true)]
public override System.Reflection.InterfaceMapping GetInterfaceMap (Type interfaceType);
override this.GetInterfaceMap : Type -> System.Reflection.InterfaceMapping
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.GetInterfaceMap : Type -> System.Reflection.InterfaceMapping
Public Overrides Function GetInterfaceMap (interfaceType As Type) As InterfaceMapping

参数

interfaceType
Type

要为其检索接口映射的接口的类型。The type of the interface for which the interface mapping is to be retrieved.

返回

InterfaceMapping

所请求的接口映射。The requested interface mapping.

属性

例外

此类型不实现此接口。The type does not implement the interface.

注解

解决方法:若要检索已完成类型的接口映射类型,请使用或检索该类型, Type.GetType Assembly.GetType 并在检索的类型上使用反射。As a workaround, to retrieve the interface mapping types of a finished type, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

适用于