Udostępnij za pośrednictwem


VersionedPackage Constructors

Definition

Overloads

VersionedPackage(String, Int32)

Creates a new instance.

VersionedPackage(String, Int64)

Creates a new instance.

VersionedPackage(String, Int32)

Creates a new instance.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=26)]
public VersionedPackage (string packageName, int versionCode);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=26)>]
new Android.Content.PM.VersionedPackage : string * int -> Android.Content.PM.VersionedPackage

Parameters

packageName
String

The package name.

versionCode
Int32

The version code.

Attributes

Remarks

Creates a new instance. Use PackageManager#VERSION_CODE_HIGHEST to refer to the highest version code of this package.

Java documentation for android.content.pm.VersionedPackage.VersionedPackage(java.lang.String, int).

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

VersionedPackage(String, Int64)

Creates a new instance.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "", ApiSince=28)]
public VersionedPackage (string packageName, long versionCode);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "", ApiSince=28)>]
new Android.Content.PM.VersionedPackage : string * int64 -> Android.Content.PM.VersionedPackage

Parameters

packageName
String

The package name.

versionCode
Int64

The version code.

Attributes

Remarks

Creates a new instance. Use PackageManager#VERSION_CODE_HIGHEST to refer to the highest version code of this package.

Java documentation for android.content.pm.VersionedPackage.VersionedPackage(java.lang.String, long).

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