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

# PFInventorySubtractInventoryItemsAsync

> インベントリ アイテムを減算します。

インベントリ アイテムを減算します。

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFInventorySubtractInventoryItemsRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorysubtractinventoryitemsrequest.md)

値が設定されたリクエスト オブジェクト。

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API はすべてのプラットフォームで利用できます。エンティティの種類、エンティティ識別子、コンテナーの詳細を指定すると、指定されたインベントリ アイテムを減算します。非同期タスクが完了したら、[PFInventorySubtractInventoryItemsGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsgetresultsize.md) と [PFInventorySubtractInventoryItemsGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsgetresult.md) を呼び出して結果を取得します。

## 要件

**ヘッダー:** PFInventory.h

## 関連項目

[PFInventory のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)


## Related topics

- [PFInventorySubtractInventoryItemsGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Subtract Inventory Items](https://docs.xbox.com/api-reference/inventory/subtract-inventory-items.md)
- [PFInventorySubtractInventoryItemsOperation](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorysubtractinventoryitemsoperation.md)
- [PFInventorySubtractInventoryItemsResponse](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorysubtractinventoryitemsresponse.md)
