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

# Intelligent Delivery: OnDemand コンテンツ

> Intelligent Delivery: OnDemand コンテンツ

<Note>OnDemand 属性の使用は推奨されなくなりました。代わりに、コンテンツを独立して追加および削除可能なグループにグループ化するために Feature および Recipe の使用を検討する必要があります。Feature および Recipe を使用しても、OnDemand 属性と同様に、既定でインストールされるコンテンツを指定できます。</Note>

OnDemand チャンクを使用すると、既定ではインストールされないが、ユーザーの要求時またはタイトルが [XPackageInstallChunks](/reference/system/xpackage/functions/xpackageinstallchunks) メソッドを呼び出したときにインストール可能なコンテンツを、タイトルが指定できます。

チャンクを OnDemand として指定するには、次の例に示すように layout.xml ファイル内のチャンクに `OnDemand` 属性を適用します。

```xml theme={null}
<Chunk Id="6000" Tags="LevelEditor" OnDemand="true">  
```

`OnDemand` 属性を含むチャンクは、実行時 API がタグで関連付けられたチャンクを参照できるように、カスタムタグ指定子も含める必要があります。

タイトルは [XPackageUninstallChunks](/reference/system/xpackage/functions/xpackageuninstallchunks) メソッドを呼び出すことで OnDemand コンテンツをアンインストールできます。

<a id="ID4EKB" />

## リファレンス API ドキュメント

* [XPackage (API 内容)](/reference/system/xpackage/xpackage_members)
  * 関数
    * [XPackageInstallChunks](/reference/system/xpackage/functions/xpackageinstallchunks)
    * [XPackageUninstallChunks](/reference/system/xpackage/functions/xpackageuninstallchunks)

## 関連項目

[Intelligent Delivery](/build/core-features/common/packaging/overviews/intelligentdelivery)


## Related topics

- [Intelligent Delivery](/ja-jp/build/core-features/common/packaging/overviews/intelligentdelivery.md)
- [XBOX GDK タイトルのパッケージングとデプロイ](/ja-jp/build/core-features/common/packaging/index.md)
- [XR-129 Intelligent Delivery のコンテンツ管理](/ja-jp/publishing/certification/xr/xr-129.md)
- [FMA: XR-129 Intelligent Delivery のコンテンツ管理](/ja-jp/publishing/certification/fma/xr-129.md)
- [Intelligent Delivery: カスタムタグ指定子](/ja-jp/build/core-features/common/packaging/intelligentdelivery-custom.md)
