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

# PFInventoryAddInventoryItemsAsync

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

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

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFInventoryAddInventoryItemsRequest\*](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsrequest)

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

[PFInventory のメンバー](/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryAddInventoryItemsGetResult](/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryAddInventoryItemsGetResultSize](/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresultsize.md)
- [PFInventoryAddInventoryItemsOperation](/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsoperation.md)
- [PFInventoryAddInventoryItemsResponse](/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsresponse.md)
