Udostępnij za pośrednictwem


PackageStatus Class

Definition

Provides the status of the package.

public ref class PackageStatus sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PackageStatus final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PackageStatus
Public NotInheritable Class PackageStatus
Inheritance
Object Platform::Object IInspectable PackageStatus
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Use the Package.Status property to get the PackageStatus. The Package.Status and all of the properties of the PackageStatus class are read-only, so you cannot change their values. To get updated information about the status of the package, access the Package.Status property again to get a new instance of the PackageStatus class.

Version history

Windows version SDK version Value added
1703 15063 IsPartiallyStaged

Properties

DataOffline

Indicates whether the data for the package is offline.

DependencyIssue

Indicates whether this package depends on a package that can't be used.

DeploymentInProgress

Indicates whether the package is being serviced.

Disabled

Indicates whether the package has been disabled.

IsPartiallyStaged

Indicates whether the package is partially staged.

LicenseIssue

Indicates whether there is a problem with the license for this package.

Modified

Indicates whether the package is missing files, system information, etc.

NeedsRemediation

Indicates whether the package is unusable.

NotAvailable

Indicates whether the package is available.

PackageOffline

Indicates whether the package is offline and cannot be used.

Servicing

Indicates whether the package is being serviced.

Tampered

Indicates whether the package may have been tampered with.

Methods

VerifyIsOK()

Indicates whether the package is in good condition and may be used.

Applies to