Partager via


Type.GetMethods Method ()

Gets all of the public methods of the current type.

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

Syntax

public MethodInfo [] GetMethods ()

Return Value

An array of MethodInfo objects representing all of the methods defined for the current type.

-or-

An empty MethodInfo array, if no methods are defined for the current type.

Remarks

Constructors are not included in the array of methods returned by this call. Make a separate call to the GetConstructors method to get the constructor methods.

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