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

# PFInventoryGetInventoryOperationStatusAsync

> 使用 OperationToken 获取库存操作的状态。在请求后的 1 天内，可以随时将 TransactionToken 传递给此 API 来检查操作状态。

使用 OperationToken 获取库存操作的状态。在请求后的 1 天内，可以随时将 TransactionToken 传递给此 API 来检查操作状态。

## 语法

```cpp theme={null}
HRESULT PFInventoryGetInventoryOperationStatusAsync(  
    PFEntityHandle entityHandle,  
    const PFInventoryGetInventoryOperationStatusRequest* request,  
    XAsyncBlock* async  
)  
```

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

**`request`**   [PFInventoryGetInventoryOperationStatusRequest\*](/zh-CN/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventoryoperationstatusrequest)

已填充的请求对象。

**`async`**   XAsyncBlock\*<br />*Inout*

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在 Windows 上使用。使用 OperationToken 获取库存操作的状态。异步任务完成后，调用 [PFInventoryGetInventoryOperationStatusGetResultSize](/zh-CN/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresultsize) 和 [PFInventoryGetInventoryOperationStatusGetResult](/zh-CN/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresult) 获取结果。

## 要求

**头文件：** PFInventory.h

## 另请参阅

[PFInventory 成员](/zh-CN/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryGetInventoryOperationStatusGetResult](/zh-CN/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresult.md)
- [PFInventoryGetInventoryOperationStatusGetResultSize](/zh-CN/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresultsize.md)
- [Get Inventory Operation Status](/api-reference/inventory/get-inventory-operation-status.md)
- [PFInventoryGetInventoryOperationStatusResponse](/zh-CN/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventoryoperationstatusresponse.md)
- [PFInventoryGetInventoryOperationStatusRequest](/zh-CN/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventoryoperationstatusrequest.md)
