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

# XStoreSku

> XStoreSku

# XStoreSku

描述商店 SKU。

## 語法

```cpp theme={null}
typedef struct XStoreSku {  
    const char* skuId;  
    const char* title;  
    const char* description;  
    const char* language;  
    XStorePrice price;  
    bool isTrial;  
    bool isInUserCollection;  
    XStoreCollectionData collectionData;  
    bool isSubscription;  
    XStoreSubscriptionInfo subscriptionInfo;  
    uint32_t bundledSkusCount;  
    const char** bundledSkus;  
    uint32_t imagesCount;  
    XStoreImage* images;  
    uint32_t videosCount;  
    XStoreVideo* videos;  
    uint32_t availabilitiesCount;  
    XStoreAvailability* availabilities;  
} XStoreSku  
```

### 成員

*skuId*\
類型：const char\*

商店 SKU 的識別碼。

*title*\
類型：const char\*

SKU 的標題。

*description*\
類型：const char\*

SKU 的描述。

*language*\
類型：const char\*

代表標題和描述字串所用語言的國際標準組織 (ISO) 識別碼。請參閱 [https://msdn.microsoft.com/library/ms693062(v=vs.85).aspx](https://msdn.microsoft.com/library/ms693062\(v=vs.85\).aspx)

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

商店產品的價格資訊

*isTrial*\
類型：bool

指出商店 SKU 是否為試用版。

*isInUserCollection*\
類型：bool

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

*collectionData*\
類型：[XStoreCollectionData](/zh-TW/reference/system/xstore/structs/xstorecollectiondata)

與使用者收藏中產品相關的其他資料，若產品為消耗性產品，則包括數量。

*isSubscription*\
類型：bool

指出商店 SKU 是否為訂閱。

*subscriptionInfo*\
類型：[XStoreSubscriptionInfo](/zh-TW/reference/system/xstore/structs/xstoresubscriptioninfo)

SKU 的訂閱資訊。

*bundledSkusCount*\
類型：uint32\_t

**bundledSkus** 中的元素數目。

*bundledSkus*\
類型：const char\*\*

套件組合 SKU 的陣列。

*imagesCount*\
類型：uint32\_t

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

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

與 SKU 相關聯的影像。

*videosCount*\
類型：uint32\_t

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

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

與 SKU 相關聯的影片。

*availabilitiesCount*\
類型：uint32\_t

**availabilities** 中的元素數目。

*availabilities*\
類型：[XStoreAvailability\*](/zh-TW/reference/system/xstore/structs/xstoreavailability)

SKU 的供應。

## 備註

SKU 是唯一識別產品或服務特定版本的代碼。這是庫存管理領域中非常常見的術語。Store 中的產品會依「產品」、「SKU」和「供應物件」的階層組織。產品以 [XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct) 物件表示。每個產品的 SKU 以 **StoreSku** 物件表示，而每個 SKU 的供應則以 [XStoreAvailability](/zh-TW/reference/system/xstore/structs/xstoreavailability) 物件表示。
若要存取產品的 SKU，請使用您感興趣之產品的 [XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct) 的 SKUs 屬性。

[XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct) 的成員。

## 需求

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

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreProduct](/zh-TW/reference/system/xstore/structs/xstoreproduct)\
[XStoreAvailability](/zh-TW/reference/system/xstore/structs/xstoreavailability)


## Related topics

- [XStoreSku](/reference/system/xstore/structs/xstoresku.md)
- [XStoreAvailability](/reference/system/xstore/structs/xstoreavailability.md)
