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

# PFInventoryGetTransactionHistoryGetResultSize

> 取得儲存 GetTransactionHistory 呼叫結果所需的位元組大小。

取得儲存 GetTransactionHistory 呼叫結果所需的位元組大小。

## 語法

```cpp theme={null}
HRESULT PFInventoryGetTransactionHistoryGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 參數

**`async`**   XAsyncBlock\*\
*Inout*

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t\*\
*output*

結果所需的緩衝區大小 (以位元組為單位)。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為其中一個全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFInventory.h

**程式庫：** PlayFabServices.lib

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

## 另請參閱

[PFInventory 成員](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)


## Related topics

- [PFInventoryGetTransactionHistoryAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistoryasync.md)
- [服務 C API 概觀 - PFInventory.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryGetTransactionHistoryGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistorygetresult.md)
- [PFInventoryGetInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryitemsgetresultsize.md)
- [PFInventoryGetInventoryCollectionIdsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize.md)
