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

# XPackage (API の内容)

> XPackage

# XPackage

XPackage API のリファレンス資料。

## Functions

| 関数 | 説明 |
| - | - |
| [XPackageChangeChunkInstallOrder](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagechangechunkinstallorder.md) | 最初にインストールする選択済みチャンクを設定します。 |
| [XPackageChunkAvailabilityCallback](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagechunkavailabilitycallback.md) | [XPackageEnumerateChunkAvailability](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumeratechunkavailability.md) で使用されるユーザー定義のコールバック。 |
| [XPackageCloseInstallationMonitorHandle](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagecloseinstallationmonitorhandle.md) | 指定されたインストール モニターを閉じます。 |
| [XPackageCloseMountHandle](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageclosemounthandle.md) | 指定されたマウント ハンドルを閉じます。 |
| [XPackageCreateInstallationMonitor](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagecreateinstallationmonitor.md) | インストール状態を監視するモニターを作成します。 |
| [XPackageEnumerateChunkAvailability](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumeratechunkavailability.md) | インストール パッケージを調べ、指定されたセレクターに一致するすべてのチャンクの可用性を列挙します。 |
| [XPackageEnumerateFeatures](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumeratefeatures.md) | パッケージのレイアウト ファイルで定義された機能を列挙します。 |
| [XPackageEnumeratePackages](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumeratepackages.md) | 呼び出し元プロセスに関連するインストール済みまたはインストール中のパッケージを検索します。 |
| [XPackageEnumerationCallback](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumerationcallback.md) | [XPackageEnumeratePackages](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageenumeratepackages.md) で使用されるコールバック。 |
| [XPackageEstimateDownloadSize](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageestimatedownloadsize.md) | 指定されたインストール セレクターに一致するチャンクのダウンロード サイズを計算します。 |
| [XPackageFeatureEnumerationCallback](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagefeatureenumerationcallback.md) | 各機能を列挙するために XPackageEnumerateFeatures によって使用されるコールバック。 |
| [XPackageFindChunkAvailability](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagefindchunkavailability.md) | 指定されたセレクターに一致するチャンクのコレクションの最小可用性を返します。 |
| [XPackageGetCurrentProcessPackageIdentifier](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetcurrentprocesspackageidentifier.md) | このプロセスのインストールを識別するインストール ID 文字列を返します。 |
| [XPackageGetInstallationProgress](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetinstallationprogress.md) | インストールの現在の進行状況を返します。 |
| [XPackageGetMountPath](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetmountpath.md) | マウントされたインストールへのパスを取得します。 |
| [XPackageGetPackageKind](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetpackagekind.md) | パッケージの [XPackageKind](https://docs.xbox.com/ja-jp/reference/system/xpackage/enums/xpackagekind.md) を返します。 |
| [XPackageGetMountPathSize](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetmountpathsize.md) | [XPackageGetMountPath](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetmountpath.md) から返されるマウント パスを保持するために必要な配列のサイズを取得します。 |
| [XPackageGetUserLocale](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetuserlocale.md) | 現在のユーザー ロケールを取得します。 |
| [XPackageGetWriteStats](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetwritestats.md) | 出力書き込み統計 (writeStats) を取得します。 |
| [XPackageInstallationProgressCallback](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstallationprogresscallback.md) | [XPackageRegisterInstallationProgressChanged](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageregisterinstallationprogresschanged.md) で使用されるコールバック。 |
| [XPackageInstallChunks](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstallchunks.md) | チャンクのインストールを開始します。 |
| [XPackageInstallChunksAsync](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstallchunksasync.md) | チャンクのインストールを開始します。 |
| [XPackageInstallChunksResult](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstallchunksresult.md) | [XPackageInstallChunksAsync](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstallchunksasync.md) の呼び出し結果を取得します。 |
| [XPackageInstalledCallback](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageinstalledcallback.md) | XPackageRegisterPackageInstalled 関数で使用されるユーザー定義のコールバック。 |
| [XPackageIsPackagedProcess](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageispackagedprocess.md) | 現在のプロセスがインストール ID を持つかどうかを示すブール値を返します。 |
| [XPackageMount](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagemount.md) | この関数は非推奨になりました。代わりに XPackageMountWithUiAsync を使用してください。 |
| [XPackageMountWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagemountwithuiasync.md) | 指定されたコンテンツのインストールを非同期にマウントし、そのマウント ハンドルを返します。 |
| [XPackageMountWithUiResult](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagemountwithuiresult.md) | XPackageMountWithUIAsync の呼び出しの結果を取得します。 |
| [XPackageRegisterInstallationProgressChanged](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageregisterinstallationprogresschanged.md) | インストールの進行状況が変化したときに呼び出されるコールバックを登録します。 |
| [XPackageRegisterPackageInstalled](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageregisterpackageinstalled.md) | インストールが完了したときに呼び出されるコールバックを登録します。 |
| [XPackageUninstallPackage](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageuninstallpackage.md) | 指定されたパッケージをアンインストールします。 |
| [XPackageUninstallChunks](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageuninstallchunks.md) | 指定されたセレクターに一致するチャンクをアンインストールします。 |
| [XPackageUninstallUWPInstance](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageuninstalluwpinstance.md) | 現在のユーザーに対して、特定のパッケージのユニバーサル Windows プラットフォーム (UWP) インスタンスが現在インストールされている場合、それをアンインストールします。 |
| [XPackageUnregisterInstallationProgressChanged](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageunregisterinstallationprogresschanged.md) | 以前に登録されたインストール進行状況変更コールバックを登録解除します。 |
| [XPackageUnregisterPackageInstalled](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageunregisterpackageinstalled.md) | 以前に登録されたインストール完了コールバックを登録解除します。 |
| [XPackageUpdateInstallationMonitor](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackageupdateinstallationmonitor.md) | [XPackageGetInstallationProgress](https://docs.xbox.com/ja-jp/reference/system/xpackage/functions/xpackagegetinstallationprogress.md) から返される進行状況を更新します。 |

## Structures

| 構造体 | 説明 |
| - | - |
| [XPackageChunkSelector](https://docs.xbox.com/ja-jp/reference/system/xpackage/structs/xpackagechunkselector.md) | チャンクのセットを選択するための条件を定義します。 |
| [XPackageDetails](https://docs.xbox.com/ja-jp/reference/system/xpackage/structs/xpackagedetails.md) | インストールに関する詳細情報が含まれます。 |
| [XPackageFeature](https://docs.xbox.com/ja-jp/reference/system/xpackage/structs/xpackagefeature.md) | 機能を記述します。 |
| [XPackageInstallationProgress](https://docs.xbox.com/ja-jp/reference/system/xpackage/structs/xpackageinstallationprogress.md) | インストールの進行状況に関する情報が含まれます。 |
| [XPackageWriteStats](https://docs.xbox.com/ja-jp/reference/system/xpackage/structs/xpackagewritestats.md) | 出力書き込み統計 (writeStats) が含まれます。 |

## Enumerations

| 列挙型 | 説明 |
| - | - |
| [XPackageChunkAvailability](https://docs.xbox.com/ja-jp/reference/system/xpackage/enums/xpackagechunkavailability.md) | インストール チャンクの可用性を示します。 |
| [XPackageChunkSelectorType](https://docs.xbox.com/ja-jp/reference/system/xpackage/enums/xpackagechunkselectortype.md) | セレクターのタイプを示します。 |
| [XPackageEnumerationScope](https://docs.xbox.com/ja-jp/reference/system/xpackage/enums/xpackageenumerationscope.md) | インストール パッケージを列挙するときに返されるパッケージのスコープを示します。 |
| [XPackageKind](https://docs.xbox.com/ja-jp/reference/system/xpackage/enums/xpackagekind.md) | インストール パッケージのタイプを示します。 |

## Error codes

XPackage API は次のエラー コードを返す場合があります。完全な一覧については、[エラー コード](https://docs.xbox.com/ja-jp/reference/errorcodes.md) を参照してください。

| コード | 値 | 説明 |
| - | - | - |
| E\_GAMEPACKAGE\_APP\_NOT\_PACKAGED | 0x89245200 | ゲームがコンテナーにパッケージ化されていません。 |
| E\_GAMEPACKAGE\_NO\_INSTALLED\_LANGUAGES | 0x89245201 | ゲームは Intelligent Delivery を使用して言語を選択的にインストールしますが、いずれもインストールされていません。 |
| E\_GAMEPACKAGE\_NO\_STORE\_ID | 0x89245202 | アプリケーションのゲーム構成で StoreId 属性を設定する必要があります。 |
| E\_GAMEPACKAGE\_INVALID\_SELECTOR | 0x89245203 | パッケージ内のチャンクに解決されないチャンク セレクターが指定されました。 |
| E\_GAMEPACKAGE\_DOWNLOAD\_REQUIRED | 0x89245204 | このデバイスでパッケージをマウントするには、1 つ以上の必須チャンクをダウンロードする必要があります。 |
| E\_GAMEPACKAGE\_NO\_TAG\_CHANGE | 0x89245205 | このパッケージにインストールされているチャンクは、タグではなく機能を使用して変更してください。 |
| E\_GAMEPACKAGE\_DLC\_NOT\_SUPPORTED | 0x89245206 | ゲームは DLC パッケージをサポートしていません。ゲーム構成で正しい DLC 互換性を確認してください。 |
| E\_GAMEPACKAGE\_DUPLICATE\_ID\_VALUES | 0x89245207 | パッケージには同じ 'ID' 属性にマップされる複数の実行可能ファイルが含まれています。'Executable' 要素で重複した 'ID' 属性を確認してください。 |
| E\_GAMEPACKAGE\_NO\_PACKAGE\_IDENTIFIER | 0x89245208 | パッケージの識別子を解決できませんでした。パッケージがインストールされていない可能性があります。 |

## Conceptual documentation

* [XStore の更新確認](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-checking-updates.md)
* [XStore コンテンツへのアクセス許可の付与](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-granting-access.md)
* [XStore オプション パッケージの管理およびライセンス](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-dlc.md)

## See also

[システム API リファレンス](https://docs.xbox.com/ja-jp/reference/system/gc-reference-system-toc.md)\
[XStore API リファレンス](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)


## Related topics

- [Games-as-a-Service (GaaS) のサポート](https://docs.xbox.com/ja-jp/build/core-features/common/packaging/supporting-games-as-a-service.md)
- [更新プログラムの確認](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-checking-updates.md)
- [GDK のダウンロード可能コンテンツ (DLC) パッケージ](https://docs.xbox.com/ja-jp/build/core-features/common/packaging/packaging-downloadable-content-dlc.md)
- [ダウンロード可能なコンテンツ (DLC) の管理とライセンス供与](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-dlc.md)
- [ストリーミング インストール: ステータス](https://docs.xbox.com/ja-jp/build/core-features/common/packaging/packaging-installstatus.md)
