Compartir a través de


Type.GetMethod Method (String)

Searches for the public method with the specified name.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[MethodImplAttribute]
public MethodInfo GetMethod (
         string name
)

Parameters

  • name
    The String object containing the name of the method you want to get.

Return Value

A MethodInfo object representing the method with the specified name, if it is found; otherwise, a null reference.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Type Class
Type Members
System Namespace