StorePackageUpdateStatus StorePackageUpdateStatus StorePackageUpdateStatus StorePackageUpdateStatus StorePackageUpdateStatus Struct

Definition

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

public : struct StorePackageUpdateStatus
struct winrt::Windows::Services::Store::StorePackageUpdateStatus
public struct StorePackageUpdateStatus
Public Structure StorePackageUpdateStatus
var storePackageUpdateStatus = {

   packageBytesDownloaded: /* Your value */,

   packageDownloadProgress: /* Your value */,

   packageDownloadSizeInBytes: /* Your value */,

   packageFamilyName: /* Your value */,

   packageUpdateState: /* Your value */,

   totalDownloadProgress: /* Your value */

}
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

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 PackageBytesDownloaded PackageBytesDownloaded PackageBytesDownloaded PackageBytesDownloaded

The number of bytes that have been downloaded.

ulong PackageBytesDownloaded;
ulong PackageBytesDownloaded;
ulong PackageBytesDownloaded;
PackageBytesDownloaded As ulong;
var ulong = storePackageUpdateStatus.packageBytesDownloaded;
storePackageUpdateStatus.packageBytesDownloaded = ulong;

PackageDownloadProgress PackageDownloadProgress PackageDownloadProgress PackageDownloadProgress 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.

double PackageDownloadProgress;
double PackageDownloadProgress;
double PackageDownloadProgress;
PackageDownloadProgress As double;
var double = storePackageUpdateStatus.packageDownloadProgress;
storePackageUpdateStatus.packageDownloadProgress = double;

PackageDownloadSizeInBytes PackageDownloadSizeInBytes PackageDownloadSizeInBytes PackageDownloadSizeInBytes PackageDownloadSizeInBytes

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

ulong PackageDownloadSizeInBytes;
ulong PackageDownloadSizeInBytes;
ulong PackageDownloadSizeInBytes;
PackageDownloadSizeInBytes As ulong;
var ulong = storePackageUpdateStatus.packageDownloadSizeInBytes;
storePackageUpdateStatus.packageDownloadSizeInBytes = ulong;

PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName

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

Platform::String PackageFamilyName;
Platform::String PackageFamilyName;
string PackageFamilyName;
PackageFamilyName As string;
var string = storePackageUpdateStatus.packageFamilyName;
storePackageUpdateStatus.packageFamilyName = string;

PackageUpdateState PackageUpdateState PackageUpdateState PackageUpdateState PackageUpdateState

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

StorePackageUpdateState PackageUpdateState;
StorePackageUpdateState PackageUpdateState;
StorePackageUpdateState PackageUpdateState;
PackageUpdateState As StorePackageUpdateState;
var StorePackageUpdateState = storePackageUpdateStatus.packageUpdateState;
storePackageUpdateStatus.packageUpdateState = StorePackageUpdateState;

TotalDownloadProgress TotalDownloadProgress TotalDownloadProgress TotalDownloadProgress TotalDownloadProgress

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

double TotalDownloadProgress;
double TotalDownloadProgress;
double TotalDownloadProgress;
TotalDownloadProgress As double;
var double = storePackageUpdateStatus.totalDownloadProgress;
storePackageUpdateStatus.totalDownloadProgress = double;