Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Retrieves a MethodInfo object that corresponds to a specified method under specified search constraints.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Function GetMethod ( _
name As String, _
bindingAttr As BindingFlags _
) As MethodInfo
MethodInfo GetMethod(
string name,
BindingFlags bindingAttr
)
MethodInfo^ GetMethod(
String^ name,
BindingFlags bindingAttr
)
abstract GetMethod :
name:string *
bindingAttr:BindingFlags -> MethodInfo
function GetMethod(
name : String,
bindingAttr : BindingFlags
) : MethodInfo
Parameters
- name
Type: System. . :: . .String
The name of the member to find.
- bindingAttr
Type: System.Reflection. . :: . .BindingFlags
The binding attributes used to control the search.
Return Value
Type: System.Reflection. . :: . .MethodInfo
A MethodInfo object containing the method information, with the match being based on the method name and search constraints specified in bindingAttr.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.