Module.GetMethods Module.GetMethods Module.GetMethods Module.GetMethods Method

定义

返回在模块中定义的全局方法。Returns the global methods defined on the module.

重载

GetMethods() GetMethods() GetMethods() GetMethods()

返回在模块中定义的全局方法。Returns the global methods defined on the module.

GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

返回在与指定的绑定标志匹配的模块上定义的全局方法。Returns the global methods defined on the module that match the specified binding flags.

GetMethods() GetMethods() GetMethods() GetMethods()

返回在模块中定义的全局方法。Returns the global methods defined on the module.

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 对象数组;如果没有全局方法,则返回空数组。An array of MethodInfo objects representing all the global methods defined on the module; if there are no global methods, an empty array is returned.

GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

返回在与指定的绑定标志匹配的模块上定义的全局方法。Returns the global methods defined on the module that match the specified binding flags.

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingFlags);
public System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingFlags);
member this.GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]

参数

bindingFlags
BindingFlags BindingFlags BindingFlags BindingFlags

用于限制搜索的 BindingFlags 值的按位组合。A bitwise combination of BindingFlags values that limit the search.

返回

类型 MethodInfo 的数组,表示在与指定的绑定标志匹配的模块上定义的全局方法;如果没有全局方法匹配绑定标志,则返回空数组。An array of type MethodInfo representing the global methods defined on the module that match the specified binding flags; if no global methods match the binding flags, an empty array is returned.

适用于