_Type.FindInterfaces(TypeFilter, Object) _Type.FindInterfaces(TypeFilter, Object) _Type.FindInterfaces(TypeFilter, Object) _Type.FindInterfaces(TypeFilter, Object) Method

定义

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

public:
 cli::array <Type ^> ^ FindInterfaces(System::Reflection::TypeFilter ^ filter, System::Object ^ filterCriteria);
public Type[] FindInterfaces (System.Reflection.TypeFilter filter, object filterCriteria);
abstract member FindInterfaces : System.Reflection.TypeFilter * obj -> Type[]
Public Function FindInterfaces (filter As TypeFilter, filterCriteria As Object) As Type()

参数

filter
TypeFilter TypeFilter TypeFilter TypeFilter

对照 filterCriteria 比较接口的 TypeFilter 委托。The TypeFilter delegate that compares the interfaces against filterCriteria.

filterCriteria
Object Object Object Object

确定接口是否应包括在返回数组中的搜索判据。The search criteria that determines whether an interface should be included in the returned array.

返回

Type[]

Type 对象的数组,表示当前 Type 实现或继承的接口的筛选列表。An array of Type objects representing a filtered list of the interfaces implemented or inherited by the current Type.

-or- 如果没有匹配筛选器的接口由当前 Type 实现或继承,则为 Type 类型的空数组。An empty array of type Type, if no interfaces matching the filter 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这些对象表示由当前Type实现或继承的接口的筛选列表。 Type.FindInterfacesThe Type.FindInterfaces method returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.

适用于