IReflect.GetMethods(BindingFlags) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取包含所有公開方法或當前類別所有方法的物件陣列 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 公開屬性。