EnumBuilder.GetInterfaceMap(Type) 方法

定义

返回所请求的接口的接口映射。

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

要为其检索接口映射的接口的类型。

返回

InterfaceMapping

所请求的接口映射。

属性

例外

此类型不实现此接口。

注解

解决方法是,若要检索已完成类型的接口映射类型,请使用 Type.GetTypeAssembly.GetType 对检索的类型使用反射来检索类型。

适用于