AppInstallManager 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于以编程方式安装应用的成员,包括启动应用安装和获取当前正在进行的应用安装列表的功能。
public ref class AppInstallManager sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppInstallManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class AppInstallManager final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppInstallManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class AppInstallManager
function AppInstallManager()
Public NotInheritable Class AppInstallManager
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
应用功能 |
runFullTrust
|
注解
重要
对此 API 的访问受专用功能保护,该功能仅限于 Microsoft 开发的应用。
版本历史记录
Windows 版本 | SDK 版本 | 增值 |
---|---|---|
1511 | 10586 | 取消 (字符串,字符串) |
1511 | 10586 | GetIsAppAllowedToInstallAsync (String,String,String,String) |
1511 | 10586 | 暂停 (字符串,字符串) |
1511 | 10586 | 重启 (字符串,字符串) |
1511 | 10586 | SearchForAllUpdatesAsync (字符串) |
1511 | 10586 | SearchForUpdatesAsync (String,String,String,String) |
1511 | 10586 | StartAppInstallAsync (String,String,Boolean,Boolean,String,String,String) |
1511 | 10586 | UpdateAppByPackageFamilyNameAsync (String,String) |
1607 | 14393 | GetIsAppAllowedToInstallForUserAsync |
1607 | 14393 | GetIsApplicableForUserAsync |
1607 | 14393 | MoveToFrontOfDownloadQueue |
1607 | 14393 | SearchForAllUpdatesForUserAsync (User,String) |
1607 | 14393 | SearchForUpdatesForUserAsync (User,String,String,String,String) |
1607 | 14393 | StartProductInstallAsync (String,String,String,Boolean,Boolean,String,PackageVolume) |
1607 | 14393 | StartProductInstallForUserAsync (User,String,String,String,String,String,Boolean,Boolean,String,PackageVolume) |
1607 | 14393 | UpdateAppByPackageFamilyNameForUserAsync |
1703 | 15063 | AppInstallItemsWithGroupSupport |
1703 | 15063 | GetFreeDeviceEntitlementAsync |
1703 | 15063 | GetFreeUserEntitlementAsync |
1703 | 15063 | GetFreeUserEntitlementForUserAsync |
1803 | 17134 | GetIsPackageIdentityAllowedToInstallAsync |
1803 | 17134 | GetIsPackageIdentityAllowedToInstallForUserAsync |
1803 | 17134 | SearchForAllUpdatesAsync (String,String,AppUpdateOptions) |
1803 | 17134 | SearchForAllUpdatesForUserAsync (User,String,String,AppUpdateOptions) |
1803 | 17134 | SearchForUpdatesAsync (String,String,String,String,String,AppUpdateOptions) |
1803 | 17134 | SearchForUpdatesForUserAsync (User,String,String,String,String,String,String,AppUpdateOptions) |
1803 | 17134 | StartProductInstallAsync (String,String,String,String,String,AppInstallOptions) |
1803 | 17134 | StartProductInstallForUserAsync (User,String,String,String,String,String,String,AppInstallOptions) |
1809 | 17763 | CanInstallForAllUsers |
构造函数
AppInstallManager() |
创建并初始化 AppInstallManager 类的新实例。 |
属性
AcquisitionIdentity |
获取或设置与应用安装关联的用户标识。 |
AppInstallItems |
检索有关当前位于安装队列中的所有应用的信息。 |
AppInstallItemsWithGroupSupport |
检索有关当前位于安装队列中的单个应用捆绑包的所有应用的信息。 |
AutoUpdateSetting |
获取或设置当前计算机或设备上的应用的自动更新设置。 |
CanInstallForAllUsers |
获取或设置一个值,该值指示调用应用是否具有提升的管理权限,以确保为所有用户成功安装应用。 |
方法
事件
ItemCompleted |
在应用完成安装时发生。 |
ItemStatusChanged |
在安装队列中应用的状态发生更改时发生。 |