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

# XStoreConsumableResult

> XStoreConsumableResult

# XStoreConsumableResult

表示消耗品的数量。

## 语法

```cpp theme={null}
typedef struct XStoreConsumableResult {  
    uint32_t quantity;  
} XStoreConsumableResult  
```

### 成员

*quantity*\
类型：uint32\_t

消耗品的剩余数量。

## 备注

虽然此结构包含 [XStoreQueryConsumableBalanceRemainingAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md) 和 [XStoreReportConsumableFulfillmentAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md) 的结果，但这些结构实际上是在其结果函数中填充的，即分别是 [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md) 和 [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md)。**XStoreConsumableResult** 是 [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md) 的参数。**XStoreConsumableResult** 是 [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md) 的参数。此结构可以通过多种机制返回，包括在使用或购买消耗品之后返回。

## 要求

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

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

## 另请参阅

[XStore](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)\
[XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md)\
[XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md)


## Related topics

- [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md)
- [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md)
- [XStore（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)
- [XStoreReportConsumableFulfillmentAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md)
- [XStoreQueryConsumableBalanceRemainingAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md)
