This documentation is archived and is not being maintained.

IReflect.GetMethods Method

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

[Visual Basic]
Function GetMethods( _
   ByVal bindingAttr As BindingFlags _
) As MethodInfo()
MethodInfo[] GetMethods(
   BindingFlags bindingAttr
MethodInfo* GetMethods(
   BindingFlags bindingAttr
) [];
function GetMethods(
   bindingAttr : BindingFlags
) : MethodInfo[];


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | BindingFlags | BindingFlags