Επεξεργασία

Κοινή χρήση μέσω


ModuleBuilder.GetMethods(BindingFlags) Method

Definition

Returns all the methods that have been defined at the module level for the current ModuleBuilder, and that match the specified binding flags.

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

Parameters

bindingFlags
BindingFlags

A combination of BindingFlags bit flags used to control the search.

Returns

An array that contains all the module-level methods that match bindingFlags.

Remarks

Module-level methods are defined in emitted code by using the DefineGlobalMethod method.

Important

Module-level methods cannot be retrieved until after the CreateGlobalFunctions method has been called for the module.

Applies to