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

# PFInventoryAddInventoryItemsAsync

> インベントリ アイテムを追加します。1 つのインベントリ コレクションには最大 10,000 スタックのアイテムを追加できます。スタック サイズには上限がありません。

インベントリ アイテムを追加します。1 つのインベントリ コレクションには最大 10,000 スタックのアイテムを追加できます。スタック サイズには上限がありません。

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

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

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

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


## Related topics

- [PFInventoryAddInventoryItemsGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Add Inventory Items](https://docs.xbox.com/api-reference/inventory/add-inventory-items.md)
- [PFInventoryAddInventoryItemsGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresultsize.md)
- [PFInventoryAddInventoryItemsOperation](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsoperation.md)
