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 用户
1803 17134 IsStaged

属性

BytesDownloaded

获取已为当前应用下载的字节数。

DownloadSizeInBytes

获取当前应用的下载大小(以字节为单位)。

ErrorCode

获取遇到安装失败的应用的错误代码。

InstallState

获取当前应用的安装状态。

IsStaged

获取一个值,该值指示应用重启是否处于挂起状态。

PercentComplete

获取当前应用的安装完成百分比。

ReadyForLaunch

获取一个值,该值指示应用是否可以启动,即使应用尚未完成安装。

User

获取一个 对象,该对象标识要为其安装应用的用户。

适用于