IReflect.GetMethods(BindingFlags) 方法

定義

擷取包含所有公開方法或當前類別所有方法的物件陣列 MethodInfo

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags bindingAttr);
abstract member GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()

參數

bindingAttr
BindingFlags

用於控制搜尋的綁定屬性。

傳回

一個包含所有符合搜尋約束且符合該反射物件方法bindingAttr的物件陣列MethodInfo

備註

只有當返回公開方法時,才會標示非 bindingAttr 公開屬性。

適用於

另請參閱