Share via


ClassLoader.GetPackages Method

Definition

Returns all of the Packages defined by this class loader and its ancestors.

[Android.Runtime.Register("getPackages", "()[Ljava/lang/Package;", "GetGetPackagesHandler")]
protected virtual Java.Lang.Package[]? GetPackages ();
[<Android.Runtime.Register("getPackages", "()[Ljava/lang/Package;", "GetGetPackagesHandler")>]
abstract member GetPackages : unit -> Java.Lang.Package[]
override this.GetPackages : unit -> Java.Lang.Package[]

Returns

The array of Package objects defined by this ClassLoader

Attributes

Remarks

Returns all of the Packages defined by this class loader and its ancestors.

Added in 1.2.

Java documentation for java.lang.ClassLoader.getPackages().

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