System.Reflection.IReflect.GetMethods Method

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

Syntax

public MethodInfo[] GetMethods (BindingFlags bindingAttr)

Parameters

bindingAttr
The binding attributes used to control the search.

Returns

An array of System.Reflection.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

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0