Partager via


Class.Package Property

Definition

Gets the package of this class.

public Java.Lang.Package? Package { [Android.Runtime.Register("getPackage", "()Ljava/lang/Package;", "")] get; }
[<get: Android.Runtime.Register("getPackage", "()Ljava/lang/Package;", "")>]
member this.Package : Java.Lang.Package

Property Value

the package of this class.

Attributes

Remarks

Gets the package of this class.

If this class represents an array type, a primitive type or void, this method returns null.

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

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