EnumBuilder.GetInterfaces EnumBuilder.GetInterfaces EnumBuilder.GetInterfaces EnumBuilder.GetInterfaces Method

定义

返回在此类及其基类上实现的所有接口的数组。Returns an array of all the interfaces implemented on this a class and its base classes.

public:
 override cli::array <Type ^> ^ GetInterfaces();
public override Type[] GetInterfaces ();
override this.GetInterfaces : unit -> Type[]
Public Overrides Function GetInterfaces () As Type()

返回

Type[]

返回 Type 对象的数组,表示已实现的接口。Returns an array of Type objects representing the implemented interfaces. 如果未定义任何内容,则返回一个空数组。If none are defined, an empty array is returned.

注解

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

适用于