StoreContext.GetAssociatedStoreQueueItemsAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得目前應用程式下載與安裝隊列中所有新或更新套件的資訊。
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 需求
| 規格需求 | Description |
|---|---|
| 裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
| API contract |
Windows.Services.Store.StoreContract (已於 v3.0 引進)
|
備註
如果您的應用程式支援使用 RequestDownloadAndInstallStorePackagesAsync 或 RequestDownloadAndInstallStorePackageUpdatesAsync 方法下載並安裝新的或更新套件,在某些情況下,應用程式可能會在完成套件的下載與安裝前關閉(例如,使用者可能在完成安裝前關閉應用程式)。 你可以用這個方法取得目前排隊中套件的進度資訊,讓應用程式顯示套件的下載或安裝狀態。