IReflect.GetMethod Method
Retrieves the MethodInfo object that corresponds to a specified method, using specified search constraints.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
public MethodInfo GetMethod (
stringname,
BindingFlagsbindingAttr
)
Parameters
- name
The name of the method you want to find. - bindingAttr
The binding attributes you want to use to control the search.
Return Value
A MethodInfo object that contains method information, with the match being based on the method name and search constraints specified in the bindingAttr parameter.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.
See Also
Reference
IReflect Interface
IReflect Members
System.Reflection Namespace