包 Class
提供有关应用程序包的信息。
语法
特性
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.ApplicationModel.IPackageStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
成员
Package类 具有以下类型的成员:
方法
The Package 类 继承以下内容中的方法 Object 类 (C#/VB/C++).
属性
该 Package类 具有以下属性。
| 属性 | 访问类型 | 描述 |
|---|---|---|
| 只读 | Gets the package for the current app. | |
| 只读 | Gets the packages on which the current package depends. | |
| 只读 | Gets the package identity of the current package. | |
| 只读 | Gets the location of the installed package. | |
| 只读 | Indicates whether other packages can declare a dependency on this package. |
示例
使用 Package.Current | current 属性可以获取当前应用程序包。
要求
|
最低受支持的客户端 | Windows 8 [Windows 应用商店应用, 桌面应用] |
|---|---|
|
最低受支持的服务器 | Windows Server 2012 [Windows 应用商店应用, 桌面应用] |
|
最低受支持的电话 | Windows Phone 8 |
|
命名空间 |
|
|
元数据 |
|
另请参阅
- 示例
- 应用程序包信息示例
- 概念
- 应用程序包和部署
- 引用
- Package.Current
- PackageId