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

# XPackageEnumerationScope

> XPackageEnumerationScope

# XPackageEnumerationScope

表示列舉安裝套件時要傳回的套件範圍。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
enum class XPackageEnumerationScope  : uint32_t  
{  
    ThisOnly,  
    ThisAndRelated,  
    ThisPublisher  
}  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| ThisOnly | 範圍僅限於與呼叫處理程序相關聯的應用程式或內容。 |
| ThisAndRelated | 範圍包含與呼叫處理程序相關聯的應用程式或內容，也包含與呼叫處理程序已新增至其遊戲設定檔之 RelatedProducts 區段中任何套件相關聯的應用程式或內容。 |
| ThisPublisher | 範圍包含與呼叫處理程序具有相同發行者的應用程式，或與目前處理程序具有相同發行者之應用程式相關的內容。 |

<a id="remarksSection" />

## 備註

此列舉中的常數由與呼叫處理程序相關聯的套件、應用程式和內容使用。這些常數是在 **Game config** 檔案的 *RelatedProducts* 區段中指定。如需搭配 XBOX One 遊戲使用之封裝技術的資訊，請參閱[封裝概觀](/zh-TW/build/core-features/common/packaging/overviews/packaging)。如需建立 XVC 套件之步驟的資訊，請參閱[開始封裝 XBOX 主機遊戲](/zh-TW/build/core-features/common/packaging/overviews/packaging-getting-started-for-console)。

<a id="requirementsSection" />

## 需求

**標頭：** XPackage.h

**支援的平台：** Windows、XBOX One 系列主機與 XBOX Series 主機

## 另請參閱

[如何為 PC 和 XBOX One 建立及使用可下載內容套件 (DLC)](/zh-TW/build/core-features/common/packaging/packaging-downloadable-content-dlc)\
[XPackage](/zh-TW/reference/system/xpackage/xpackage_members)\
[系列遊戲中樞](https://learn.microsoft.com/gaming/gdk/docs/store/franchise-game-hubs)


## Related topics

- [XPackageEnumerationScope](/reference/system/xpackage/enums/xpackageenumerationscope.md)
- [XPackage](/reference/system/xpackage/xpackage_members.md)
- [XPackageEnumeratePackages](/reference/system/xpackage/functions/xpackageenumeratepackages.md)
