StorePackageUpdateStatus Struct

Definition

Provides status info for a package that is associated with a download or installation request.

public value class StorePackageUpdateStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
struct StorePackageUpdateStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
public struct StorePackageUpdateStatus
var storePackageUpdateStatus = {
packageFamilyName : /* Your value */,
packageDownloadSizeInBytes : /* Your value */,
packageBytesDownloaded : /* Your value */,
packageDownloadProgress : /* Your value */,
totalDownloadProgress : /* Your value */,
packageUpdateState : /* Your value */
}
Public Structure StorePackageUpdateStatus
Inheritance
StorePackageUpdateStatus
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced in v1.0)

Remarks

To request the download or install of a package, use the RequestDownloadAndInstallStorePackagesAsync, RequestDownloadAndInstallStorePackageUpdatesAsync, or RequestDownloadStorePackageUpdatesAsync methods of the StoreContext class. The method that you assign to handle Progress notifications for the request receives a StorePackageUpdateStatus object.

Fields

PackageBytesDownloaded

The number of bytes that have been downloaded.

PackageDownloadProgress

The download (or download and install) progress of the current package, represented by a value from 0.0 to 1.0. When you use RequestDownloadStorePackageUpdatesAsync to download packages, this value increases from 0.0 to 1.0 during the download of each package. When you use RequestDownloadAndInstallStorePackageUpdatesAsync to download and install packages in a single operation, this value increases from 0.0 to 0.8 during the download of each package, and then it increases from 0.8 to 1.0 during the install phase.

PackageDownloadSizeInBytes

The size of the package that is being downloaded, in bytes. This is an estimate, and it might change during the download process.

PackageFamilyName

The family name of the package that is being downloaded or installed.

PackageUpdateState

A StorePackageUpdateState value that indicates the state of the package that is being downloaded or installed.

TotalDownloadProgress

The current progress of all package downloads in the request, represented by a value from 0.0 to 1.0.

Applies to