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

# XStoreReportConsumableFulfillmentResult

> XStoreReportConsumableFulfillmentResult

# XStoreReportConsumableFulfillmentResult

取得呼叫 [XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 的結果。如需實作和使用消費性產品的詳細資訊，請參閱[以消費性產品為基礎的生態系統](/zh-TW/publishing/xstore-commerce/xstore-consumables)。

## 語法

```cpp theme={null}
HRESULT XStoreReportConsumableFulfillmentResult(  
         XAsyncBlock* async,  
         XStoreConsumableResult* consumableResult  
)  
```

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

傳遞給 [XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 的 XAsyncBlock。[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

*consumableResult*   \_Out\_\
類型：[XStoreConsumableResult\*](/zh-TW/reference/system/xstore/structs/xstoreconsumableresult)

成功時，包含指出消費性產品目前數量的結構。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 的執行結果。因此，應該在呼叫 [XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。

如需使用範例，請參閱 [XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync)。

## 需求

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

**程式庫：** xgameruntime.lib

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

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreReportConsumableFulfillmentAsync](/zh-TW/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync)


## Related topics

- [XStoreReportConsumableFulfillmentResult](/es/reference/system/xstore/functions/xstorereportconsumablefulfillmentresult.md)
- [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md)
- [XStoreConsumableResult](/reference/system/xstore/structs/xstoreconsumableresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Consumable-based ecosystems](/publishing/xstore-commerce/xstore-consumables.md)
