PackageManager 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
管理可供用户使用的软件。
public ref class PackageManager 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)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PackageManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class PackageManager 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)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PackageManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PackageManager
Public NotInheritable Class PackageManager
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
版本历史记录
| Windows 版本 | SDK 版本 | 增值 |
|---|---|---|
| 1607 | 14393 | GetPackageVolumesAsync |
| 1703 | 15063 | AddPackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<Uri>) |
| 1703 | 15063 | DebugSettings |
| 1703 | 15063 | RegisterPackageByFamilyNameAsync |
| 1703 | 15063 | StagePackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<Uri>) |
| 1709 | 16299 | AddPackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<Uri>,IEnumerable<Uri>) |
| 1709 | 16299 | AddPackageByAppInstallerFileAsync |
| 1709 | 16299 | ProvisionPackageForAllUsersAsync |
| 1709 | 16299 | RequestAddPackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<URI>) |
| 1709 | 16299 | RequestAddPackageByAppInstallerFileAsync |
| 1709 | 16299 | StagePackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<Uri>,IEnumerable<<Uri>) |
| 1803 | 17134 | RequestAddPackageAsync (Uri,IEnumerable<Uri>,DeploymentOptions,PackageVolume,IEnumerable,IEnumerable<URI>,IEnumerable<Uri>) |
| 1809 | 17763 | DeprovisionPackageForAllUsersAsync |
| 2004 | 19041 | AddPackageByUriAsync |
| 2004 | 19041 | FindProvisionedPackages |
| 2004 | 19041 | GetPackageStubPreference |
| 2004 | 19041 | RegisterPackageByUriAsync |
| 2004 | 19041 | RegisterPackagesByFullNameAsync |
| 2004 | 19041 | SetPackageStubPreference |
| 2004 | 19041 | StagePackageByUriAsync |
构造函数
| PackageManager() |
创建并初始化 对象的新实例。 |
属性
| DebugSettings |
获取 包 部署的调试设置。 |