Share via


ClassLoader.GetPackages Method

Definition

Returns all of the Packages that have been 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 that have been defined by this class loader and its ancestors

Attributes

Remarks

Returns all of the Packages that have been defined by this class loader and its ancestors. The returned array may contain more than one Package object of the same package name, each defined by a different class loader in the class loader hierarchy.

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