GetMethods Method
Collapse the table of content
Expand the table of content

IReflect.GetMethods Method

Retrieves an array of MethodInfo objects with all public methods or all methods of the current class.

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

MethodInfo[] GetMethods (
	BindingFlags bindingAttr
)
MethodInfo[] GetMethods (
	BindingFlags bindingAttr
)
function GetMethods (
	bindingAttr : BindingFlags
) : MethodInfo[]

Parameters

bindingAttr

The binding attributes used to control the search.

Return Value

An array of MethodInfo objects containing all the methods defined for this reflection object that meet the search constraints specified in bindingAttr.

The non-public attribute of bindingAttr is indicated only if public methods are returned.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2016 Microsoft