> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPackageKind

> XPackageKind

# XPackageKind

指示安装程序包的类型。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum class XPackageKind  : uint32_t  
{  
    Game,  
    Content  
}  
```

<a id="constantsSection" />

## 常量

| 常量      | 描述            |
| ------- | ------------- |
| Game    | 安装程序包包含游戏。    |
| Content | 安装程序包包含可下载内容。 |

<a id="remarksSection" />

## 备注

此枚举中的常量指示用于游戏和内容的安装程序包的类型。有关 XBOX One 游戏所使用的打包技术的信息，请参阅[打包概述](/build/core-features/common/packaging/overviews/packaging)。有关创建 XVC 程序包的步骤的信息，请参阅[开始为 XBOX 主机打包游戏](/build/core-features/common/packaging/overviews/packaging-getting-started-for-console)。

<a id="requirementsSection" />

## 要求

**头文件：** XPackage.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[如何为 PC 和 XBOX One 创建和使用可下载内容程序包 (DLC)](/build/core-features/common/packaging/packaging-downloadable-content-dlc)\
[XPackage](/reference/system/xpackage/xpackage_members)


## Related topics

- [XPackageEnumeratePackages](/zh-CN/reference/system/xpackage/functions/xpackageenumeratepackages.md)
- [XPackage](/zh-CN/reference/system/xpackage/xpackage_members.md)
- [XPackageDetails](/zh-CN/reference/system/xpackage/structs/xpackagedetails.md)
- [XStoreProductKind](/zh-CN/reference/system/xstore/enums/xstoreproductkind.md)
- [XStoreQueryProductForPackageAsync](/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md)
