共用方式為


Class.GetDeclaredClasses Method

Definition

Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.

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

Returns

Class[]

the array of Class objects representing all the declared members of this class

Attributes

Remarks

Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object. This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces. This method returns an array of length 0 if the class declares no classes or interfaces as members, or if this Class object represents a primitive type, an array class, or void.

Added in 1.1.

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

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