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

# XPackageDetails

> XPackageDetails

# XPackageDetails

包含安裝的詳細資料。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XPackageDetails {  
    const char* packageIdentifier;  
    XVersion version;  
    XPackageKind kind;  
    const char* displayName;  
    const char* description;  
    const char* publisher;  
    const char* storeId;  
    bool installing;  
    uint32_t index;  
    uint32_t count;
    bool ageRestricted;  
    const char* titleID;  
} XPackageDetails  
```

<a id="membersSection" />

### 成員

*packageIdentifier*\
類型：const char\*

可唯一識別磁碟上已安裝套件的字串。如需套件識別碼的詳細資訊，請參閱[管理可下載內容 (DLC) 並授權](/zh-TW/publishing/xstore-commerce/xstore-dlc)。

*version*\
類型：[XVersion](/zh-TW/reference/system/xgameruntimetypes/structs/xversion)

正在安裝之套件的版本。

*kind*\
類型：[XPackageKind](/zh-TW/reference/system/xpackage/enums/xpackagekind)

指出套件是應用程式套件或內容套件的值。

*displayName*\
類型：const char\*

顯示名稱。

*description*\
類型：const char\*

套件的描述。

*publisher*\
類型：const char\*

套件的發行者。

*storeId*\
類型：const char\*

產品的唯一識別碼。

*installing*\
類型：bool

指出套件目前是否正在安裝的布林值。

*index*\
類型：uint32\_t

每列舉一個套件就會遞增的值。在套件安裝時，*index* 為 0。

*count*\
類型：uint32\_t

可列舉的套件總數。在套件安裝時，*count* 為 1。

*ageRestricted*\
類型：bool

指出套件對於目前所有已登入使用者的聯集而言是否受到年齡限制的布林值。掛接受年齡限制的套件會向使用者觸發家長同意提示。

*titleID*\
類型：const char\*

遊戲的 TitleID。對於 DLC，此值會是空的。格式：十六進位、正好 8 位數、大寫、前面不加 "0x"。

<a id="remarksSection" />

## 備註

`XPackageDetails` 結構會將套件安裝的詳細資料提供給 [XPackageEnumeratePackages](/zh-TW/reference/system/xpackage/functions/xpackageenumeratepackages) 和 [XPackageInstalledCallback](/zh-TW/reference/system/xpackage/functions/xpackageinstalledcallback) 函式。

`XPackageDetails` 僅在回呼的範圍內有效。如果您需要保留任何資料，請在從回呼傳回之前複製資料。

如需 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 主機

<a id="seealsoSection" />

## 概念文件

* [管理可下載內容 (DLC) 並授權](/zh-TW/publishing/xstore-commerce/xstore-dlc)

## 另請參閱

[可下載內容 (DLC) 套件概觀](/zh-TW/build/core-features/common/packaging/packaging-downloadable-content-dlc)\
[XPackageEnumeratePackages](/zh-TW/reference/system/xpackage/functions/xpackageenumeratepackages)\
[XPackageInstalledCallback](/zh-TW/reference/system/xpackage/functions/xpackageinstalledcallback)\
[XPackage](/zh-TW/reference/system/xpackage/xpackage_members)


## Related topics

- [XPackageDetails](/reference/system/xpackage/structs/xpackagedetails.md)
- [XPackageEnumerationCallback](/reference/system/xpackage/functions/xpackageenumerationcallback.md)
- [XPackage](/reference/system/xpackage/xpackage_members.md)
- [XPackageInstalledCallback](/reference/system/xpackage/functions/xpackageinstalledcallback.md)
- [XPackageMountWithUiAsync](/reference/system/xpackage/functions/xpackagemountwithuiasync.md)
