AccessibleObject.IReflect.GetMethods(BindingFlags) 方法

定義

取得包含所有公用方法或目前類別的所有方法的 MethodInfo 物件陣列。Gets an array of MethodInfo objects with all public methods or all methods of the current class. 如需這個成員的說明,請參閱 GetMethods(BindingFlags)For a description of this member, see GetMethods(BindingFlags).

 virtual cli::array <System::Reflection::MethodInfo ^> ^ System.Reflection.IReflect.GetMethods(System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethods;
System.Reflection.MethodInfo[] IReflect.GetMethods (System.Reflection.BindingFlags bindingAttr);
Function GetMethods (bindingAttr As BindingFlags) As MethodInfo() Implements IReflect.GetMethods

參數

bindingAttr
BindingFlags

繫結屬性,用來控制搜尋。The binding attributes used to control the search.

傳回

MethodInfo 物件陣列,包含為符合 bindingAttr 中所指定搜尋條件約束的這個反映物件定義的所有方法。An array of MethodInfo objects containing all the methods defined for this reflection object that meet the search constraints specified in bindingAttr.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 AccessibleObject 執行個體轉換成 IReflect 介面時,才能使用這個成員。It can be used only when the AccessibleObject instance is cast to an IReflect interface.

適用於