Delen via


StoreContext.GetStoreQueueItemsAsync(IIterable<String>) Method

Definition

Gets info about the specified new or updated packages that are in the download and installation queue for the current app.

public:
 virtual IAsyncOperation<IVectorView<StoreQueueItem ^> ^> ^ GetStoreQueueItemsAsync(IIterable<Platform::String ^> ^ storeIds) = GetStoreQueueItemsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<StoreQueueItem>> GetStoreQueueItemsAsync(IIterable<winrt::hstring> const& storeIds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<StoreQueueItem>> GetStoreQueueItemsAsync(IEnumerable<string> storeIds);
function getStoreQueueItemsAsync(storeIds)
Public Function GetStoreQueueItemsAsync (storeIds As IEnumerable(Of String)) As IAsyncOperation(Of IReadOnlyList(Of StoreQueueItem))

Parameters

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

An array of Store ID strings that correspond to the packages for which you want to get download and installation queue info.

Returns

An asynchronous operation that, on successful completion, returns the collection of StoreQueueItem objects that provide info about the specified packages in the queue.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Services.Store.StoreContract (introduced in v3.0)

Remarks

If your app supports downloading and installing new or updated packages by using the RequestDownloadAndInstallStorePackagesAsync or RequestDownloadAndInstallStorePackageUpdatesAsync methods, in some cases your app may close before it successfully completes the download and install of the packages (for example, a user may close your app before the process is completed). You can use this method to get progress info about any packages that are currently in the queue so your app can display the download or install status of the packages.

The Store ID for a product is available in Partner Center, and it also is returned by the StoreId property of the StoreProduct that represents the product. For more information, see Store IDs.

Applies to

See also