StoreContext.GetAppAndOptionalStorePackageUpdatesAsync StoreContext.GetAppAndOptionalStorePackageUpdatesAsync StoreContext.GetAppAndOptionalStorePackageUpdatesAsync StoreContext.GetAppAndOptionalStorePackageUpdatesAsync StoreContext.GetAppAndOptionalStorePackageUpdatesAsync Method

Definition

Gets the collection of packages for the current app that have updates available for download from the Microsoft Store, including optional packages for the app.

public : IAsyncOperation<IVectorView<StorePackageUpdate>> GetAppAndOptionalStorePackageUpdatesAsync()
IAsyncOperation<IVectorView<StorePackageUpdate>> GetAppAndOptionalStorePackageUpdatesAsync() const;
public IAsyncOperation<IReadOnlyList<StorePackageUpdate>> GetAppAndOptionalStorePackageUpdatesAsync()
Public Function GetAppAndOptionalStorePackageUpdatesAsync() As IAsyncOperation<IReadOnlyList<StorePackageUpdate>>(Of IVectorView)
Windows.Services.Store.StoreContext.getAppAndOptionalStorePackageUpdatesAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IReadOnlyList<StorePackageUpdate>> IAsyncOperation<IReadOnlyList<StorePackageUpdate>> IAsyncOperation<IReadOnlyList<StorePackageUpdate>>

An asynchronous operation that, on successful completion, returns a collection of StorePackageUpdate objects that represent the packages that have updates available.

Remarks

For more information about using this method, including a code example, see Download and install package updates for your app.

There is a latency of up to a day between the time when a package passes the certification process and when the GetAppAndOptionalStorePackageUpdatesAsync method recognizes that the package update is available to the app.

After you call GetAppAndOptionalStorePackageUpdatesAsync to determine which packages have updates available, you can call RequestDownloadStorePackageUpdatesAsync to download the updated packages or you can call RequestDownloadAndInstallStorePackageUpdatesAsync to download and install the updated packages.

Important

Optional packages and downloadable content (DLC) packages are not available to all developer accounts.

See also