Android Guides | Samples

Java.Lang.Class.GetMethods Method

Returns an array containing Method objects for all public methods for the class C represented by this Class.

Syntax

[Android.Runtime.Register("getMethods", "()[Ljava/lang/reflect/Method;", "")]
public Method[] GetMethods ()

See Also

Remarks

Returns an array containing Method objects for all public methods for the class C represented by this Class. Methods may be declared in C, the interfaces it implements or in the superclasses of C. The elements in the returned array are in no particular order.

If there are no public methods or if this Class represents a primitive type or void then an empty array is returned.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1