Export (0) Print
Expand All

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()
[C#]
MethodInfo[] GetMethods(
   BindingFlags bindingAttr
);
[C++]
MethodInfo* GetMethods(
   BindingFlags bindingAttr
) [];
[JScript]
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.

Remarks

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

Requirements

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

Show:
© 2015 Microsoft