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

# PFInventoryRedeemMicrosoftStoreInventoryItemsAsync

> 兌換來自 Microsoft Store 的項目。支援的權利類型為 Developer Manager Consumable 和 Durable。

兌換來自 Microsoft Store 的項目。支援的權利類型為 Developer Manager Consumable 和 Durable。

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFInventoryRedeemMicrosoftStoreInventoryItemsRequest\*](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryredeemmicrosoftstoreinventoryitemsrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 可在 Windows、Linux 和 macOS 上使用。兌換來自 Microsoft Store 的項目。 當非同步工作完成時，請呼叫 [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresultsize) 和 [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresult) 以取得結果。

## 需求

**標頭：** PFInventory.h

## 另請參閱

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


## Related topics

- [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresult.md)
- [服務 C API 概觀 - PFInventory.h](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Redeem Microsoft Store Inventory Items](/api-reference/inventory/redeem-microsoft-store-inventory-items.md)
- [PFInventoryRedeemMicrosoftStoreInventoryItemsRequest](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryredeemmicrosoftstoreinventoryitemsrequest.md)
- [PFInventoryRedeemMicrosoftStoreInventoryItemsResponse](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryredeemmicrosoftstoreinventoryitemsresponse.md)
