> ## 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\*\
*输出*

结果所需的缓冲区大小（字节）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用不成功，结果将是全局 PlayFab 服务错误之一。有关错误处理的更多详细信息，请参阅文档页"处理 PlayFab 错误"。

## 要求

**头文件：** PFInventory.h

**库：** PlayFabServices.lib

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

## 另请参阅

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


## Related topics

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