StoreContext.TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate>) StoreContext.TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate>) StoreContext.TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate>) StoreContext.TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate>) StoreContext.TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate>) Method

Definition

Attempts to download the specified package updates for the current app from the Microsoft Store without displaying a notification UI to the user.

public : IAsyncOperationWithProgress<StorePackageUpdateResult, StorePackageUpdateStatus> TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate> storePackageUpdates)
IAsyncOperationWithProgress<StorePackageUpdateResult, StorePackageUpdateStatus> TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate> storePackageUpdates) const;
public IAsyncOperationWithProgress<StorePackageUpdateResult, StorePackageUpdateStatus> TrySilentDownloadStorePackageUpdatesAsync(IEnumerable<StorePackageUpdate> storePackageUpdates)
Public Function TrySilentDownloadStorePackageUpdatesAsync(storePackageUpdates As IEnumerable(Of StorePackageUpdate)) As IAsyncOperationWithProgress(Of StorePackageUpdateResultStorePackageUpdateStatus)
Windows.Services.Store.StoreContext.trySilentDownloadStorePackageUpdatesAsync(storePackageUpdates).done( /* Your success and error handlers */ );

Parameters

storePackageUpdates
IEnumerable<StorePackageUpdate> IEnumerable<StorePackageUpdate> IEnumerable<StorePackageUpdate>

The set of StorePackageUpdate objects that represent the updated packages to download.

Returns

An object that the caller can observe to track progress and completion for the operation. On successful completion, the result is a StorePackageUpdateResult object that provides info about the package updates.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Services.Store.StoreContract (introduced v3)

Remarks

Use this method to attempt to download package updates for the current app silently (without displaying a notification UI that asks the user's permission to proceed with the download). Before calling this method, first check the CanSilentlyDownloadStorePackageUpdates property to determine whether package updates can be silently downloaded based on the user's settings and network configuration. This method is an alternative to RequestDownloadStorePackageUpdatesAsync, which displays a notification UI.

To get the list of packages that have updates available, use the GetAppAndOptionalStorePackageUpdatesAsync method. After you download the packages, you can install them by using the TrySilentDownloadAndInstallStorePackageUpdatesAsync method.

This operation will not block. The IAsyncOperationWithProgress object returned by this method will complete after the update packages are downloaded.

The method that you assign to handle Progress notifications is called one time for each step in the download process for each package in this request. The Progress handler receives a StorePackageUpdateStatus argument that provides info about the update package that raised the progress notification.

Note

If the connection is terminated during a download, a subsequent call to this method will not resume transferring from the prior location. The download will restart from the beginning.

See also