_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.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.FindInterfaces方法傳回的陣列Type物件代表之介面的篩選的清單所實作或繼承目前TypeThe Type.FindInterfaces method returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.

適用於