Partager via


Class.GetClasses Method

Definition

Returns an array containing Class objects representing all the public classes and interfaces that are members of the class represented by this Class object.

[Android.Runtime.Register("getClasses", "()[Ljava/lang/Class;", "")]
public Java.Lang.Class[] GetClasses ();
[<Android.Runtime.Register("getClasses", "()[Ljava/lang/Class;", "")>]
member this.GetClasses : unit -> Java.Lang.Class[]

Returns

Class[]

the array of Class objects representing the public members of this class

Attributes

Remarks

Returns an array containing Class objects representing all the public classes and interfaces that are members of the class represented by this Class object. This includes public class and interface members inherited from superclasses and public class and interface members declared by the class. This method returns an array of length 0 if this Class object has no public member classes or interfaces. This method also returns an array of length 0 if this Class object represents a primitive type, an array class, or void.

Added in 1.1.

Java documentation for java.lang.Class.getClasses().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to