> ## 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-TW/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md) 和 [XStoreReportConsumableFulfillmentAsync](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md) 的結果，但這些結構實際上是在其結果函式中填入的，分別為 [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md) 和 [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md)。**XStoreConsumableResult** 是 [XStoreQueryConsumableBalanceRemainingResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingresult.md) 的參數。**XStoreConsumableResult** 是 [XStoreReportConsumableFulfillmentResult](https://docs.xbox.com/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md) 的參數。此結構可透過多種機制傳回，包括在使用或購買消耗性產品之後。

## 需求

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

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

## 另請參閱

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


## Related topics

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