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

# PFTreatmentAssignment

> PFTreatmentAssignment 資料模型。

PFTreatmentAssignment 資料模型。

## 語法

```cpp theme={null}
typedef struct PFTreatmentAssignment {  
    PFVariable const* variables;  
    uint32_t variablesCount;  
    const char* const* variants;  
    uint32_t variantsCount;  
} PFTreatmentAssignment;  
```

### 成員

**`variables`**   [PFVariable](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfvariable) const\*\
*may be nullptr*

（選擇性）實驗變數清單。

**`variablesCount`**   uint32\_t

variables 的計數

**`variants`**   const char\* const\*\
*may be nullptr*

（選擇性）實驗變體清單。

**`variantsCount`**   uint32\_t

variants 的計數

## 需求

**標頭:** PFTypes.h

## 另請參閱

[PFTypes 成員](/zh-TW/services/playfab/api-references/c/pftypes/pftypes_members)


## Related topics

- [PFExperimentationGetTreatmentAssignmentResult](/zh-TW/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentresult.md)
- [PFAuthenticationLoginResult](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult.md)
- [服務 C API 概觀 - PFTypes.h](/zh-TW/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [Get Treatment Assignment](/api-reference/experimentation/get-treatment-assignment.md)
- [PFExperimentationGetTreatmentAssignmentRequest](/zh-TW/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentrequest.md)
