Module.GetMethods Method

Definition

Returns the global methods defined on the module.

Overloads

GetMethods()

Returns the global methods defined on the module.

GetMethods(BindingFlags)

Returns the global methods defined on the module that match the specified binding flags.

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()

Returns

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)

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[]

Parameters

bindingFlags
BindingFlags

A bitwise combination of BindingFlags values that limit the search.

Returns

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.

Applies to