IReflect.GetMethods(BindingFlags) Method

Definition

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

public:
 cli::array <System::Reflection::MethodInfo ^> ^ GetMethods(System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo[] GetMethods (System.Reflection.BindingFlags bindingAttr);
abstract member GetMethods : System.Reflection.BindingFlags -> System.Reflection.MethodInfo[]
Public Function GetMethods (bindingAttr As BindingFlags) As MethodInfo()

Parameters

bindingAttr
BindingFlags

The binding attributes used to control the search.

Returns

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.

Applies to

See also