StoreQueueItem 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表目前應用程式下載和安裝佇列中新或更新套件的相關資訊。
public ref class StoreQueueItem sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreQueueItem final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreQueueItem
Public NotInheritable Class StoreQueueItem
- 繼承
- 屬性
Windows 需求
| 裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
| API contract |
Windows.Services.Store.StoreContract (已於 v3.0 引進)
|
備註
版本歷程記錄
| Windows 版本 | SDK 版本 | 已新增值 |
|---|---|---|
| 1809 | 17763 | CancelInstallAsync |
| 1809 | 17763 | PauseInstallAsync |
| 1809 | 17763 | ResumeInstallAsync |
屬性
| InstallKind |
取得值,這個值描述正在下載和安裝佇列中針對目前封裝執行的作業。 |
| PackageFamilyName |
取得佇列中目前封裝的套件系列名稱。 |
| ProductId |
如果封裝對應至附加元件,則取得佇列中目前封裝的附加元件產品識別碼。 |
方法
| CancelInstallAsync() |
取消佇列中目前套件的安裝。 |
| GetCurrentStatus() |
傳回佇列中目前封裝的狀態。 |
| PauseInstallAsync() |
暫停佇列中目前封裝的安裝。 |
| ResumeInstallAsync() |
繼續佇列中目前封裝的安裝。 |
事件
| Completed |
當佇列中目前套件的下載和安裝完成時引發。 |
| StatusChanged |
當佇列中目前封裝的狀態變更時引發。 |