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

# PFTreatmentAssignment

> PFTreatmentAssignment data model.

PFTreatmentAssignment data model.

## Syntax

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

### Members

**`variables`**   [PFVariable](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfvariable.md) const\*\
*may be nullptr*

(Optional) List of the experiment variables.

**`variablesCount`**   uint32\_t

Count of variables

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

(Optional) List of the experiment variants.

**`variantsCount`**   uint32\_t

Count of variants

## Requirements

**Header:** PFTypes.h

## See also

[PFTypes members](https://docs.xbox.com/services/playfab/api-references/c/pftypes/pftypes_members.md)


## Related topics

- [PFExperimentationGetTreatmentAssignmentResult](https://docs.xbox.com/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentresult.md)
- [PFAuthenticationLoginResult](https://docs.xbox.com/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginresult.md)
- [Services C API overview - PFTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [Get Treatment Assignment](https://docs.xbox.com/services/playfab/api-references/rest/experimentation/experimentation/get-treatment-assignment.md)
- [PFExperimentationGetTreatmentAssignmentRequest](https://docs.xbox.com/services/playfab/api-references/c/pfexperimentationtypes/structs/pfexperimentationgettreatmentassignmentrequest.md)
