Context. Try Silent Download Store Package Updates Async(IEnumerable<StorePackageUpdate>) Method
Attempts to download the specified package updates for the current app from the Microsoft Store without displaying a notification UI to the user.
public: virtual IAsyncOperationWithProgress<StorePackageUpdateResult ^, StorePackageUpdateStatus> ^ TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate ^> ^ storePackageUpdates) = TrySilentDownloadStorePackageUpdatesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync] IAsyncOperationWithProgress<StorePackageUpdateResult, StorePackageUpdateStatus> TrySilentDownloadStorePackageUpdatesAsync(IIterable<StorePackageUpdate> const & storePackageUpdates);
[Windows.Foundation.Metadata.RemoteAsync] public IAsyncOperationWithProgress<StorePackageUpdateResult,StorePackageUpdateStatus> TrySilentDownloadStorePackageUpdatesAsync(IEnumerable<StorePackageUpdate> storePackageUpdates);
Public Function TrySilentDownloadStorePackageUpdatesAsync (storePackageUpdates As IEnumerable(Of StorePackageUpdate)) As IAsyncOperationWithProgress(Of StorePackageUpdateResult, StorePackageUpdateStatus)
The set of StorePackageUpdate objects that represent the updated packages to download.
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.
Windows 10 requirements
Windows 10, version 1809 (introduced in 10.0.17763.0)
Windows.Services.Store.StoreContract (introduced in v4.0)
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.
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.