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

# 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\*

產品識別碼。

*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](/zh-TW/reference/system/xstore/enums/xstoreproductkind)

指出商店產品的類型。

*price*\
類型：[XStorePrice](/zh-TW/reference/system/xstore/structs/xstoreprice)

商店產品的價格資訊。

*hasDigitalDownload*\
類型：bool

指出商店產品是否有數位下載。

*isInUserCollection*\
類型：bool

指出產品是否在使用者收藏中。

*keywordsCount*\
類型：uint32\_t

**keywords** 中的關鍵字數目。

*keywords*\
類型：const char\*\*

與商店產品相關聯的關鍵字。

*skusCount*\
類型：uint32\_t

**skus** 中的 SKU 數目。

*skus*\
類型：[XStoreSku\*](/zh-TW/reference/system/xstore/structs/xstoresku)

與產品相關聯的 SKU 陣列。

*imagesCount*\
類型：uint32\_t

**images** 中的影像數目。

*images*\
類型：[XStoreImage\*](/zh-TW/reference/system/xstore/structs/xstoreimage)

與產品相關聯的影像。

*videosCount*\
類型：uint32\_t

**videos** 中的影片數目。

*videos*\
類型：[XStoreVideo\*](/zh-TW/reference/system/xstore/structs/xstorevideo)

與產品相關聯的影片。

## 備註

Store 中的產品會依「產品」、「SKU」和「供應」物件的階層組織。產品以 **XStoreProduct** 物件表示。每個產品的 SKU 以 [XStoreSku](/zh-TW/reference/system/xstore/structs/xstoresku) 物件表示，而每個 SKU 的供應則以 [XStoreAvailability](/zh-TW/reference/system/xstore/structs/xstoreavailability) 物件表示。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 概念文件

* [基本商店作業](/zh-TW/publishing/xstore-commerce/xstore-basic-operations)
* [授與玩家附加元件內容的存取權](/zh-TW/publishing/xstore-commerce/xstore-granting-access)
* [管理可下載內容 (DLC) 並授權](/zh-TW/publishing/xstore-commerce/xstore-dlc)

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)


## Related topics

- [XStoreProduct](/reference/system/xstore/structs/xstoreproduct.md)
- [XStoreProductKind](/reference/system/xstore/enums/xstoreproductkind.md)
