Udostępnij za pośrednictwem


ClassLoader.GetPackage(String) Method

Definition

Returns a Package that has been defined by this class loader or any of its ancestors.

[Android.Runtime.Register("getPackage", "(Ljava/lang/String;)Ljava/lang/Package;", "GetGetPackage_Ljava_lang_String_Handler")]
protected virtual Java.Lang.Package? GetPackage (string? name);
[<Android.Runtime.Register("getPackage", "(Ljava/lang/String;)Ljava/lang/Package;", "GetGetPackage_Ljava_lang_String_Handler")>]
abstract member GetPackage : string -> Java.Lang.Package
override this.GetPackage : string -> Java.Lang.Package

Parameters

name
String

The package name

Returns

The Package corresponding to the given name, or null if not found

Attributes

Remarks

Returns a Package that has been defined by this class loader or any of its ancestors.

Added in 1.2.

Java documentation for java.lang.ClassLoader.getPackage(java.lang.String).

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