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

# XStoreConsumableResult

> XStoreConsumableResult

# XStoreConsumableResult

表示消耗品的数量。

## 语法

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

### 成员

*quantity*\
类型：uint32\_t

消耗品的剩余数量。

## 备注

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

## 要求

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

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

## 另请参阅

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryConsumableBalanceRemainingResult](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult)\
[XStoreReportConsumableFulfillmentResult](/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult)
