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

# PFExperimentationGetTreatmentAssignmentAsync

> タイトル内で実行中のすべての実験について、プレイヤーの Treatment 割り当てを取得します。

タイトル内で実行中のすべての実験について、プレイヤーの Treatment 割り当てを取得します。

## 構文

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

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

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

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

この API はすべてのプラットフォームで利用できます。非同期タスクが完了したら、[PFExperimentationGetTreatmentAssignmentGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentation/functions/pfexperimentationgettreatmentassignmentgetresultsize.md) と [PFExperimentationGetTreatmentAssignmentGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentation/functions/pfexperimentationgettreatmentassignmentgetresult.md) を呼び出して結果を取得します。

## 要件

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

## 関連項目

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


## Related topics

- [PFExperimentationGetTreatmentAssignmentGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentation/functions/pfexperimentationgettreatmentassignmentgetresult.md)
- [Services C API overview - PFExperimentation.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentation/pfexperimentation_members.md)
- [PFExperimentationGetTreatmentAssignmentResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentresult.md)
- [PFExperimentationGetTreatmentAssignmentRequest](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentrequest.md)
- [PFExperimentationGetTreatmentAssignmentGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfexperimentation/functions/pfexperimentationgettreatmentassignmentgetresultsize.md)
