PackageStagingEventArgs PackageStagingEventArgs PackageStagingEventArgs PackageStagingEventArgs Class

Definition

Provides information about the optional package that is being staged.

public : sealed class PackageStagingEventArgs : IPackageStagingEventArgspublic sealed class PackageStagingEventArgs : IPackageStagingEventArgsPublic NotInheritable Class PackageStagingEventArgs Implements IPackageStagingEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

An app package is staged when it is added to the device but is not yet registered.

Apps only receive package events for their optional packages.

This object is passed to the PackageCatalog.PackageStaging event event handler.

Properties

ActivityId ActivityId ActivityId ActivityId

Gets the id for the staging operation.

public : PlatForm::Guid ActivityId { get; }public Guid ActivityId { get; }Public ReadOnly Property ActivityId As Guid// You can use this property in JavaScript.
Value
PlatForm::Guid Guid Guid Guid

A unique value that an app can use to correlate events that relate to a single deployment operation.

ErrorCode ErrorCode ErrorCode ErrorCode

Gets the result of the package staging operation.

public : HResult ErrorCode { get; }public Exception ErrorCode { get; }Public ReadOnly Property ErrorCode As Exception// You can use this property in JavaScript.
Value
HResult Exception Exception Exception

The code for the error. S_OK if no error.

IsComplete IsComplete IsComplete IsComplete

Indicates whether the app package is done staging.

public : PlatForm::Boolean IsComplete { get; }public bool IsComplete { get; }Public ReadOnly Property IsComplete As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True indicates that the app package is done staging; false, otherwise.

Package Package Package Package

Gets the package that is staging.

public : Package Package { get; }public Package Package { get; }Public ReadOnly Property Package As Package// You can use this property in JavaScript.
Value
Package Package Package Package

The package being staged.

Progress Progress Progress Progress

Gets an approximation of the package's staging progress.

public : double Progress { get; }public double Progress { get; }Public ReadOnly Property Progress As double// You can use this property in JavaScript.
Value
double double double double

A value in the range of 0 through 1.0 which represents approximately how far along the package is in the staging process.