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

# XStoreAvailability

> XStoreAvailability

# XStoreAvailability

描述产品的可用性。

## 语法

```cpp theme={null}
typedef struct XStoreAvailability {  
    const char* availabilityId;  
    XStorePrice price;  
    time_t endDate;  
} XStoreAvailability  
```

### 成员

*availabilityId*\
类型：const char\*

产品/SKU 组合的 ID。

*price*\
类型：[XStorePrice](/reference/system/xstore/structs/xstoreprice)

产品的价格。

*endDate*\
类型：time\_t

可用性结束日期。

## 备注

商店中的产品按 *产品*、*SKU* 和 *可用性* 对象的层次结构组织。产品由 [XStoreProduct](/reference/system/xstore/structs/xstoreproduct) 对象表示。每个产品的 SKU 由 [XStoreSku](/reference/system/xstore/structs/xstoresku) 对象表示，每个 SKU 的可用性由 **XStoreAvailability** 对象表示。**XStoreAvailability** 是 [XStoreSku](/reference/system/xstore/structs/xstoresku) 结构的成员。

## 要求

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

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

## 另请参阅

[XStore](/reference/system/xstore/xstore_members)\
[XStoreSku](/reference/system/xstore/structs/xstoresku)\
[XStoreProduct](/reference/system/xstore/structs/xstoreproduct)


## Related topics

- [XStoreSku](/zh-CN/reference/system/xstore/structs/xstoresku.md)
- [XStorePrice](/zh-CN/reference/system/xstore/structs/xstoreprice.md)
- [XStoreProduct](/zh-CN/reference/system/xstore/structs/xstoreproduct.md)
- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [配置时间表](/zh-CN/publishing/game-publishing/concepts/availability/availability-schedule.md)
