ModuleBuilder::GetMethodImpl Method (String^, BindingFlags, Binder^, CallingConventions, array<Type^>^, array<ParameterModifier>^)
Returns the module-level method that matches the specified criteria.
Assembly: mscorlib (in mscorlib.dll)
protected: virtual MethodInfo^ GetMethodImpl( String^ name, BindingFlags bindingAttr, Binder^ binder, CallingConventions callConvention, array<Type^>^ types, array<ParameterModifier>^ modifiers ) override
Parameters
- name
-
Type:
System::String^
The method name.
- bindingAttr
-
Type:
System.Reflection::BindingFlags
A combination of BindingFlags bit flags used to control the search.
- binder
-
Type:
System.Reflection::Binder^
An object that implements Binder, containing properties related to this method.
- callConvention
-
Type:
System.Reflection::CallingConventions
The calling convention for the method.
- types
-
Type:
array<System::Type^>^
The parameter types of the method.
- modifiers
-
Type:
array<System.Reflection::ParameterModifier>^
An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.
Return Value
Type: System.Reflection::MethodInfo^A method that is defined at the module level, and matches the specified criteria; or null if such a method does not exist.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null, types is null, or an element of types is null. |
This method provides the implementation for all overloads of the inherited Module::GetMethod method. Use the inherited Module::GetMethod method to get methods that have been declared at the module level. 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. |
Available since 4.0
Silverlight
Available since 4.0
