_Type.GetInterfaces _Type.GetInterfaces _Type.GetInterfaces _Type.GetInterfaces Method

定义

为 COM 对象提供对 GetInterfaces() 方法的版本无关的访问。Provides COM objects with version-independent access to the GetInterfaces() method.

public:
 cli::array <Type ^> ^ GetInterfaces();
public Type[] GetInterfaces ();
abstract member GetInterfaces : unit -> Type[]
Public Function GetInterfaces () As Type()

返回

Type[]

表示由当前 Type 实现或继承的所有接口的 Type 对象数组。An array of Type objects representing all the interfaces implemented or inherited by the current Type.

- 或 --or- 如果没有由当前 Type 实现或继承的接口,则为 Type 类型的空数组。An empty array of type Type, if no interfaces are implemented or inherited by the current Type.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetInterfaces方法获取实现或继承当前的所有接口TypeThe Type.GetInterfaces method gets all the interfaces implemented or inherited by the current Type.

适用于