StoreContext.GetAssociatedStoreQueueItemsAsync 方法

定義

取得目前應用程式下載和安裝佇列中所有新或更新套件的相關資訊。

public:
 virtual IAsyncOperation<IVectorView<StoreQueueItem ^> ^> ^ GetAssociatedStoreQueueItemsAsync() = GetAssociatedStoreQueueItemsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<StoreQueueItem>> GetAssociatedStoreQueueItemsAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<StoreQueueItem>> GetAssociatedStoreQueueItemsAsync();
function getAssociatedStoreQueueItemsAsync()
Public Function GetAssociatedStoreQueueItemsAsync () As IAsyncOperation(Of IReadOnlyList(Of StoreQueueItem))

傳回

在成功完成時,非同步作業會傳回 StoreQueueItem 物件的集合,提供佇列中應用程式套件的相關資訊。

屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Services.Store.StoreContract (已於 v3.0 引進)

備註

如果您的 app 支援使用 RequestDownloadAndInstallStorePackagesAsyncRequestDownloadAndInstallStorePackageUpdatesAsync 方法來下載並安裝新的或更新的套件,在某些情況下,您的應用程式可能會在成功完成下載並安裝套件之前關閉 (,例如,使用者可能會在完成程式之前關閉您的應用程式) 。 您可以使用這個方法來取得目前在佇列中之任何套件的進度資訊,讓您的 app 能夠顯示套件的下載或安裝狀態。

適用於

另請參閱