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

# XStoreProduct

> XStoreProduct

# XStoreProduct

描述商店产品。

## 语法

```cpp theme={null}
typedef struct XStoreProduct {  
    const char* storeId;  
    const char* title;  
    const char* description;  
    const char* language;  
    const char* inAppOfferToken;  
    char* linkUri;  
    XStoreProductKind productKind;  
    XStorePrice price;  
    bool hasDigitalDownload;  
    bool isInUserCollection;  
    uint32_t keywordsCount;  
    const char** keywords;  
    uint32_t skusCount;  
    XStoreSku* skus;  
    uint32_t imagesCount;  
    XStoreImage* images;  
    uint32_t videosCount;  
    XStoreVideo* videos;  
} XStoreProduct  
```

### 成员

*storeId*\
类型：const char\*

产品 ID。

*title*\
类型：const char\*

产品的标题。

*description*\
类型：const char\*

商店产品的描述。

*language*\
类型：const char\*

表示标题和描述字符串所使用语言的国际标准化组织 (ISO) 标识符。请参阅 [https://msdn.microsoft.com/library/ms693062(v=vs.85).aspx](https://msdn.microsoft.com/library/ms693062\(v=vs.85\).aspx)

*inAppOfferToken*\
类型：const char\*

游戏定义的产品/服务令牌，可用于在内部映射项目。例如：com.company.product.itemname。

*linkUri*\
类型：char\*

产品的 URI。

*productKind*\
类型：[XStoreProductKind](https://docs.xbox.com/zh-CN/reference/system/xstore/enums/xstoreproductkind.md)

指示商店产品的类型。

*price*\
类型：[XStorePrice](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreprice.md)

商店产品的价格信息。

*hasDigitalDownload*\
类型：bool

指示商店产品是否具有数字下载。

*isInUserCollection*\
类型：bool

指示产品是否在用户集合中。

*keywordsCount*\
类型：uint32\_t

**keywords** 中的关键字数。

*keywords*\
类型：const char\*\*

与商店产品关联的关键字。

*skusCount*\
类型：uint32\_t

**skus** 中的 SKU 数。

*skus*\
类型：[XStoreSku\*](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresku.md)

与产品关联的 SKU 数组。

*imagesCount*\
类型：uint32\_t

**images** 中的图像数。

*images*\
类型：[XStoreImage\*](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreimage.md)

与产品关联的图像。

*videosCount*\
类型：uint32\_t

**videos** 中的视频数。

*videos*\
类型：[XStoreVideo\*](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorevideo.md)

与产品关联的视频。

## 备注

商店中的产品按 *产品*、*SKU* 和 *可用性* 对象的层次结构组织。产品由 **XStoreProduct** 对象表示。每个产品的 SKU 由 [XStoreSku](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresku.md) 对象表示，每个 SKU 的可用性由 [XStoreAvailability](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreavailability.md) 对象表示。

## 要求

**头文件：** XStore.h（包含在 XGameRuntime.h 中）

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 概念文档

* [基本商店操作](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-basic-operations.md)
* [授予玩家访问加载项内容的权限](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-granting-access.md)
* [管理和许可可下载内容 (DLC)](https://docs.xbox.com/zh-CN/publishing/xstore-commerce/xstore-dlc.md)

## 另请参阅

[XStore](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)


## Related topics

- [XStoreProductKind](https://docs.xbox.com/zh-CN/reference/system/xstore/enums/xstoreproductkind.md)
- [XStoreProductQueryCallback](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreproductquerycallback.md)
- [XStoreSku](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoresku.md)
- [XStoreVideo](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstorevideo.md)
- [XStoreAvailability](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreavailability.md)
