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

# XStore（API 内容）

> XStore

# XStore

XStore API 的参考资料。

为游戏提供商业相关功能，包括有关可购买内容的详细信息、可下载内容包管理、许可证管理和游戏试用。

## 函数

| 函数 | 说明 |
| - | - |
| [XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md) | 获取指定耐用型产品的许可证。 |
| [XStoreAcquireLicenseForDurablesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicensefordurablesresult.md) | 检索对 [XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md) 调用的结果。 |
| [XStoreAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md) | 获取用户有权使用的游戏 DLC 许可证。 |
| [XStoreAcquireLicenseForPackageResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicenseforpackageresult.md) | 检索对 [XStoreAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.md) 调用的结果。 |
| [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md) | 检索 DLC 的预览许可证。 |
| [XStoreCanAcquireLicenseForPackageResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforpackageresult.md) | 获取对 [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md) 调用的结果。 |
| [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md) | 检索内容的预览许可证。 |
| [XStoreCanAcquireLicenseForStoreIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidresult.md) | 获取对 [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md) 调用的结果。 |
| [XStoreCloseContextHandle](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreclosecontexthandle.md) | 关闭指定的商店上下文句柄。 |
| [XStoreCloseLicenseHandle](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecloselicensehandle.md) | 关闭指定的商店许可证句柄。 |
| [XStoreCloseProductsQueryHandle](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md) | 关闭指定的商店产品查询句柄。 |
| [XStoreCreateContext](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecreatecontext.md) | 为指定用户创建商店上下文。 |
| [XStoreDownloadAndInstallPackagesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync.md) | 下载并安装指定的商店包。 |
| [XStoreDownloadAndInstallPackagesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackagesresult.md) | 获取对 [XStoreDownloadAndInstallPackagesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackagesasync.md) 调用的结果。 |
| [XStoreDownloadAndInstallPackagesResultCount](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackagesresultcount.md) | 获取将由 [XStoreDownloadAndInstallPackagesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackagesresult.md) 返回的结果中的项目数。 |
| [XStoreDownloadAndInstallPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesasync.md) | 下载并安装指定商店包的更新。 |
| [XStoreDownloadAndInstallPackageUpdatesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesresult.md) | 获取对 [XStoreDownloadAndInstallPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesasync.md) 调用的结果。 |
| [XStoreDownloadPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadpackageupdatesasync.md) | 下载指定包的更新。 |
| [XStoreDownloadPackageUpdatesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadpackageupdatesresult.md) | 获取对 [XStoreDownloadPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoredownloadpackageupdatesasync.md) 调用的结果。 |
| [XStoreEnumerateProductsQuery](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreenumerateproductsquery.md) | 枚举产品查询的结果。 |
| [XStoreGameLicenseChangedCallback](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregamelicensechangedcallback.md) | 用于游戏许可证更改事件的游戏定义回调。 |
| [XStoreGetUserCollectionsIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetusercollectionsidasync.md) | 获取客户集合 ID。 |
| [XStoreGetUserCollectionsIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) | 获取对 [XStoreGetUserCollectionsIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetusercollectionsidasync.md) 调用的结果。 |
| [XStoreGetUserCollectionsIdResultSize](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetusercollectionsidresultsize.md) | 获取 [XStoreGetUserCollectionsIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) 返回的 ID 的大小。 |
| [XStoreGetUserPurchaseIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetuserpurchaseidasync.md) | 检索客户购买 ID。 |
| [XStoreGetUserPurchaseIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md) | 获取对 [XStoreGetUserPurchaseIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetuserpurchaseidasync.md) 调用的结果。 |
| [XStoreGetUserPurchaseIdResultSize](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize.md) | 获取 [XStoreGetUserPurchaseIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md) 返回的结果的大小。 |
| [XStoreIsLicenseValid](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreislicensevalid.md) | 检查指定的许可证是否有效。 |
| [XStorePackageLicenseLostCallback](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorepackagelicenselostcallback.md) | 用于许可证丢失事件的游戏定义回调。 |
| [XStoreProductQueryCallback](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreproductquerycallback.md) | 用于产品查询的游戏定义回调。 |
| [XStoreProductsQueryHasMorePages](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md) | 检查指定查询是否有更多的结果页。 |
| [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md) | 获取查询结果的下一页。 |
| [XStoreProductsQueryNextPageResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md) | 获取产品查询结果的下一页。 |
| [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md) | 枚举授予用户的没有当前正在运行的游戏部分的耐用型产品的许可证。 |
| [XStoreQueryAddOnLicensesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md) | 检索对 XStoreQueryAddOnLicensesAsync 调用的结果。 |
| [XStoreQueryAddOnLicensesResultCount](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md) | 获取由 [XStoreQueryAddonLicensesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md) 检索的许可证数量。 |
| [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md) | 获取可在当前游戏中购买的产品的商店列表信息。 |
| [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md) | 获取可从由商店 ID 指定的产品中购买的产品的商店列表信息。 |
| [XStoreQueryAssociatedProductsForStoreIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md) | 获取对 [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md) 调用的结果。 |
| [XStoreQueryAssociatedProductsResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md) | 获取对 [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md) 调用的结果。 |
| [XStoreQueryConsumableBalanceRemainingAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md) | 获取指定产品 ID 的消耗品剩余余额。 |
| [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md) | 检索对 [XStoreQueryConsumableBalanceRemainingAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md) 调用的结果。 |
| [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) | 提供用户已购买的当前游戏所有加载项的商店产品信息。 |
| [XStoreQueryEntitledProductsResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryentitledproductsresult.md) | 获取对 [XStoreQueryEntitledProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryentitledproductsasync.md) 调用的结果。 |
| [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) | 获取当前包的游戏和可选更新。 |
| [XStoreQueryGameAndDlcPackageUpdatesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresult.md) | 获取对 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 调用的结果。 |
| [XStoreQueryGameAndDlcPackageUpdatesResultCount](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresultcount.md) | 获取由 [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) 检索的更新数量。 |
| [XStoreQueryGameLicenseAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygamelicenseasync.md) | 检索有关为允许游戏启动而获取的许可证的信息。 |
| [XStoreQueryGameLicenseResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygamelicenseresult.md) | 获取对 [XStoreQueryGameLicenseAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerygamelicenseasync.md) 调用的结果。 |
| [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerylicensetokenasync.md) | 向调用游戏提供不透明令牌，该令牌可传递给游戏服务以进行 B2B 调用。 |
| [XStoreQueryLicenseTokenResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerylicensetokenresult.md) | 检索对 [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerylicensetokenasync.md) 调用的结果。 |
| [XStoreQueryLicenseTokenResultSize](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerylicensetokenresultsize.md) | 获取由 [XstoreQueryLicenseTokenResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerylicensetokenresult.md) 返回的结果的大小。 |
| [XStoreQueryPackageIdentifier](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageidentifier.md) | 检索指定商店 ID 的包标识符。 |
| [XStoreQueryPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageupdatesasync.md) | 检索指定包的可用更新。 |
| [XStoreQueryPackageUpdatesResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageupdatesresult.md) | 获取对 [XStoreQueryPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageupdatesasync.md) 调用的结果。 |
| [XStoreQueryPackageUpdatesResultCount](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageupdatesresultcount.md) | 获取由 [XStoreQueryPackageUpdatesAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequerypackageupdatesasync.md) 检索的更新数量。 |
| [XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md) | 提供当前正在运行的游戏的商店产品信息、其 sku 和可用性以及其他元数据。 |
| [XStoreQueryProductForCurrentGameResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md) | 获取对 [XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md) 调用的结果。 |
| [XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md) | 检索指定包的商店产品信息。 |
| [XStoreQueryProductForPackageResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageresult.md) | 获取对 [XStoreQueryProductForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductforpackageasync.md) 调用的结果。 |
| [XStoreQueryProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductsasync.md) | 返回与当前游戏关联的指定产品的列表信息，无论这些产品当前是否可在当前游戏中购买。 |
| [XStoreQueryProductsResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductsresult.md) | 获取对 [XStoreQueryProductsAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryproductsasync.md) 调用的结果。 |
| [XStoreRegisterGameLicenseChanged](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreregistergamelicensechanged.md) | 为游戏许可证更改事件注册回调。 |
| [XStoreRegisterPackageLicenseLost](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreregisterpackagelicenselost.md) | 为许可证丢失事件注册回调。 |
| [XStoreReportConsumableFulfillmentAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md) | 消耗指定数量的消耗品。 |
| [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md) | 获取对 [XStoreReportConsumableFulfillmentAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md) 调用的结果。 |
| [XStoreShowAssociatedProductsUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md) | 这将打开 Microsoft Store 应用，并显示与游戏关联的可用加载项集合。可以按产品类型进一步筛选。 |
| [XStoreShowAssociatedProductsUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowassociatedproductsuiresult.md) | 获取对 [XStoreShowAssociatedProductsUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowassociatedproductsuiasync.md) 调用的结果。 |
| [XStoreShowGiftingUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowgiftinguiasync.md) | 允许游戏请求将特定商店产品作为礼物为另一用户购买。 |
| [XStoreShowGiftingUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowgiftinguiresult.md) | 获取对 [XStoreShowGiftingUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowgiftinguiasync.md) 调用的结果。 |
| [XStoreShowProductPageUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowproductpageuiasync.md) | 直接打开商店应用到指定 ProductId 的详细信息页面。 |
| [XStoreShowProductPageUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowproductpageuiresult.md) | 获取对 [XStoreShowProductPageUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowproductpageuiasync.md) 调用的结果。 |
| [XStoreShowPurchaseUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md) | 允许游戏请求购买特定的商店产品。 |
| [XStoreShowPurchaseUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowpurchaseuiresult.md) | 获取对 [XStoreShowPurchaseUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md) 调用的结果。 |
| [XStoreShowRateAndReviewUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowrateandreviewuiasync.md) | 显示一个系统对话框弹窗，允许用户提供评论或拒绝提供评论。 |
| [XStoreShowRateAndReviewUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowrateandreviewuiresult.md) | 获取对 [XStoreShowRateAndReviewUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowrateandreviewuiasync.md) 调用的结果。 |
| [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) | 为当前用户触发指定令牌的令牌兑换。 |
| [XStoreShowRedeemTokenUIResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiresult.md) | 获取对 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) 调用的结果。 |
| [XStoreUnregisterGameLicenseChanged](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreunregistergamelicensechanged.md) | 取消注册指定的游戏许可证更改回调。 |
| [XStoreUnregisterPackageLicenseLost](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md) | 取消注册指定的商店许可证丢失回调。 |

## 结构

| 结构 | 说明 |
| - | - |
| [XStoreAddonLicense](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreaddonlicense.md) | 描述加载项许可证。 |
| [XStoreAvailability](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreavailability.md) | 描述产品的可用性。 |
| [XStoreCanAcquireLicenseResult](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorecanacquirelicenseresult.md) | 获取对 [XStoreCanAcquireLicenseForPackageAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md) 或 [XStoreCanAcquireLicenseForStoreIdAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.md) 调用的结果。 |
| [XStoreCollectionData](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorecollectiondata.md) | 描述商店集合。 |
| [XStoreConsumableResult](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreconsumableresult.md) | 表示消耗品的数量。 |
| [XStoreGameLicense](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoregamelicense.md) | 描述游戏许可证。 |
| [XStoreImage](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreimage.md) | 描述图像。 |
| [XStorePackageUpdate](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorepackageupdate.md) | 描述包更新。 |
| [XStorePrice](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreprice.md) | 商店价格信息。 |
| [XStoreProduct](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreproduct.md) | 描述商店产品。 |
| [XStoreRateAndReviewResult](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorerateandreviewresult.md) | 对 [XStoreShowRateAndReviewUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowrateandreviewuiasync.md) 调用的结果。 |
| [XStoreSku](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresku.md) | 描述商店 SKU。 |
| [XStoreSubscriptionInfo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresubscriptioninfo.md) | 包含订阅信息。 |
| [XStoreVideo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorevideo.md) | 描述商店视频。 |

## 枚举

| 枚举 | 说明 |
| - | - |
| [XStoreCanLicenseStatus](https://docs.xbox.com/zh-CN/reference/system/xstore/enums/xstorecanlicensestatus.md) | 指示用户是否能够许可包。 |
| [XStoreDurationUnit](https://docs.xbox.com/zh-CN/reference/system/xstore/enums/xstoredurationunit.md) | 持续时间值的单位。 |
| [XStoreProductKind](https://docs.xbox.com/zh-CN/reference/system/xstore/enums/xstoreproductkind.md) | 指示产品类型。 |

## 错误代码

以下错误代码可能由 XStore API 返回。有关完整列表，请参阅[错误代码](https://docs.xbox.com/zh-CN/reference/errorcodes.md)。

| 代码 | 值 | 说明 |
| - | - | - |
| E\_GAMESTORE\_LICENSE\_ACTION\_NOT\_APPLICABLE\_TO\_PRODUCT | 0x89245300 | 游戏请求了无法许可的产品的许可证。 |
| E\_GAMESTORE\_NETWORK\_ERROR | 0x89245301 | 游戏无法与商店网络通信。 |
| E\_GAMESTORE\_SERVER\_ERROR | 0x89245302 | 游戏收到了来自商店服务器的错误响应。 |
| E\_GAMESTORE\_INSUFFICIENT\_QUANTITY | 0x89245303 | 用户没有足够数量的该消耗品来使用请求的数量。 |
| E\_GAMESTORE\_ALREADY\_PURCHASED | 0x89245304 | 用户已拥有此产品。 |
| E\_GAMESTORE\_LICENSE\_ACTION\_THROTTLED | 0x89245305 | 游戏过度查询该产品的许可证，现已被限流。同一产品在 10 分钟内的限制为 30 次授权尝试。 |

## 概念文档

* [商业概述](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/commerce-nav)
* [XStore 概述](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-overview.md)
* [XStore 基本商店操作](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-basic-operations.md)

## 另请参阅

[System API 参考](https://docs.xbox.com/zh-CN/reference/system/gc-reference-system-toc.md)\
[XPackage API 参考](https://docs.xbox.com/zh-CN/reference/system/xpackage/xpackage_members.md)\
[商业概述](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/commerce-nav)


## Related topics

- [排查 XStore 开发问题](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-troubleshooting.md)
- [启用 XStore 开发与测试](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-product-testing-setup.md)
- [管理并授权可下载内容 (DLC)](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-dlc.md)
- [为玩家授予对附加内容的访问权限](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-granting-access.md)
- [检查更新](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-checking-updates.md)
