> ## 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.

# XPackageFeature

> XPackageFeature

# XPackageFeature

描述一项功能。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
typedef struct XPackageFeature {  
    const char* id;  
    const char* displayName;  
    const char* tags;  
    bool hidden;  
    uint32_t storeIdCount;
    const char** storeIds;
} XPackageFeature  
```

<a id="membersSection" />

### 成员

*id*\
类型：const char\*

功能 ID。

*displayName*\
类型：const char\*

将向用户显示的显示名称。

*tags*\
类型：const char\*

包的功能标签。

*hidden*\
类型：bool

确定包的功能是否隐藏。

*storeIdCount*\
类型：uint32\_t

storeIds 数组中的商店 ID 数量。

*storeIds*\
类型：const char\*\*

通过配方与此功能关联的商店 ID 数组。如果没有关联的商店 ID，此字段将为 null。

<a id="remarksSection" />

## 备注

`XPackageFeature` 结构描述包的功能。`XPackageFeature` 定义功能 ID、显示名称和功能标签。它还确定包的功能是否隐藏。功能 ID 可以通过配方与零个或多个商店 ID 相关联。相关的商店 ID 可在 `XPackageFeature` 上获取。

有关 XBOX One 主机游戏所使用打包技术的信息，请参阅[打包概述](/build/core-features/common/packaging/overviews/packaging)。

<a id="requirementsSection" />

## 要求

**头文件：** XPackage.h

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

<a id="seealsoSection" />

## 概念文档

* [支持游戏即服务 (GaaS)](/build/core-features/common/packaging/supporting-games-as-a-service)

## 另请参阅

[XPackageEnumerateFeatures](/reference/system/xpackage/functions/xpackageenumeratefeatures)\
[XPackage](/reference/system/xpackage/xpackage_members)


## Related topics

- [XPackageFeatureEnumerationCallback](/zh-CN/reference/system/xpackage/functions/xpackagefeatureenumerationcallback.md)
- [XPackageEnumerateFeatures](/zh-CN/reference/system/xpackage/functions/xpackageenumeratefeatures.md)
- [XPackage](/zh-CN/reference/system/xpackage/xpackage_members.md)
- [支持游戏即服务(GaaS)](/zh-CN/build/core-features/common/packaging/supporting-games-as-a-service.md)
- [包（Packages）](/zh-CN/publishing/game-publishing/concepts/game-package-management.md)
