Click or drag to resize
TypeGetMethod Method (String)
Searches for the public method with the specified name.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public MethodInfo GetMethod(
	string name
)

Parameters

name
Type: SystemString
The string containing the name of the public method to get.

Return Value

Type: MethodInfo
An object that represents the public method with the specified name, if found; otherwise, null.
Exceptions
ExceptionCondition
AmbiguousMatchExceptionMore than one method is found with the specified name.
ArgumentNullExceptionname is null.
See Also