> ## 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 的 ID。

*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](/reference/system/xstore/structs/xstoreprice)

商店产品的价格信息

*isTrial*\
类型：bool

指示商店 SKU 是否为试用。

*isInUserCollection*\
类型：bool

指示 SKU 是否在用户集合中。

*collectionData*\
类型：[XStoreCollectionData](/reference/system/xstore/structs/xstorecollectiondata)

与用户集合中的产品相关的其他数据，包括产品是消耗品时的数量。

*isSubscription*\
类型：bool

指示商店 SKU 是否为订阅。

*subscriptionInfo*\
类型：[XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo)

SKU 的订阅信息。

*bundledSkusCount*\
类型：uint32\_t

**bundledSkus** 中的元素数。

*bundledSkus*\
类型：const char\*\*

捆绑 SKU 的数组。

*imagesCount*\
类型：uint32\_t

**images** 中的图像数。

*images*\
类型：[XStoreImage\*](/reference/system/xstore/structs/xstoreimage)

与 SKU 关联的图像。

*videosCount*\
类型：uint32\_t

**videos** 中的视频数。

*videos*\
类型：[XStoreVideo\*](/reference/system/xstore/structs/xstorevideo)

与 SKU 关联的视频。

*availabilitiesCount*\
类型：uint32\_t

**availabilities** 中的元素数。

*availabilities*\
类型：[XStoreAvailability\*](/reference/system/xstore/structs/xstoreavailability)

SKU 的可用性。

## 备注

SKU 是唯一标识产品或服务的特定版本的代码。这是库存管理领域中非常常见的术语。商店中的产品按 *产品*、*SKU* 和 *可用性对象* 的层次结构组织。产品由 [XStoreProduct](/reference/system/xstore/structs/xstoreproduct) 对象表示。每个产品的 SKU 由 **StoreSku** 对象表示，每个 SKU 的可用性由 [XStoreAvailability](/reference/system/xstore/structs/xstoreavailability) 对象表示。
要访问产品的 SKU，请使用你感兴趣的产品对应的 [XStoreProduct](/reference/system/xstore/structs/xstoreproduct) 的 SKUs 属性。

[XStoreProduct](/reference/system/xstore/structs/xstoreproduct) 的成员。

## 要求

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

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

## 另请参阅

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


## Related topics

- [XStoreAvailability](/zh-CN/reference/system/xstore/structs/xstoreavailability.md)
- [XStoreProduct](/zh-CN/reference/system/xstore/structs/xstoreproduct.md)
- [XStoreVideo](/zh-CN/reference/system/xstore/structs/xstorevideo.md)
- [XStorePrice](/zh-CN/reference/system/xstore/structs/xstoreprice.md)
- [XStoreImage](/zh-CN/reference/system/xstore/structs/xstoreimage.md)
