| TypeGetMethod Method (String) |
Searches for the public method with the specified name.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntaxpublic MethodInfo GetMethod(
string name
)
Parameters
- name
- Type: SystemString
The string containing the name of the public method to get.
Return Value
Type:
MethodInfoAn object that represents the public method with the specified name, if found; otherwise, null.
Exceptions| Exception | Condition |
|---|
| AmbiguousMatchException | More than one method is found with the specified name. |
| ArgumentNullException | name is null. |
See Also