Module.GetMethods 方法

定義

回傳模組中定義的全域方法。

多載

名稱 Description
GetMethods()

回傳模組中定義的全域方法。

GetMethods(BindingFlags)

回傳模組上定義且符合指定綁定標誌的全域方法。

GetMethods()

回傳模組中定義的全域方法。

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

傳回

一個代表模組上所有全域方法的物件陣列 MethodInfo ;若沒有全域方法,則回傳一個空陣列。

適用於

GetMethods(BindingFlags)

回傳模組上定義且符合指定綁定標誌的全域方法。

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

參數

bindingFlags
BindingFlags

一個位元組合 BindingFlags 的數值,限制搜尋範圍。

傳回

一個型別 MethodInfo 為的陣列,代表模組上定義的全域方法,且這些方法符合指定的綁定標誌;若沒有全域方法符合綁定標誌,則回傳一個空陣列。

適用於