共用方式為


AppInstallStatus 類別

定義

描述安裝佇列中應用程式的狀態。

public ref class AppInstallStatus sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppInstallStatus final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppInstallStatus
Public NotInheritable Class AppInstallStatus
繼承
Object Platform::Object IInspectable AppInstallStatus
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
runFullTrust

備註

若要擷取這個類別的實例,請使用AppInstallItem類別的GetCurrentStatus方法。

重要

存取此 API 受到受限於 Microsoft 所開發之應用程式的私用功能保護。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1607 14393 ReadyForLaunch
1607 14393 User
1803 17134 IsStaged

屬性

BytesDownloaded

取得已針對目前應用程式下載的位元組數目。

DownloadSizeInBytes

取得目前應用程式的下載大小,以位元組為單位。

ErrorCode

取得發生安裝失敗之應用程式的錯誤碼。

InstallState

取得目前應用程式的安裝狀態。

IsStaged

取得值,這個值表示應用程式重新開機是否擱置中。

PercentComplete

取得目前應用程式的安裝完成百分比。

ReadyForLaunch

取得值,指出是否可啟動應用程式,即使應用程式尚未完成安裝也一樣。

User

取得 物件,識別正在安裝應用程式的使用者。

適用於