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

# PFVariable

> PFVariable 数据模型。

PFVariable 数据模型。

## 语法

```cpp theme={null}
typedef struct PFVariable {  
    const char* name;  
    const char* value;  
} PFVariable;  
```

### 成员

**`name`**   const char\*\
*is null-terminated*

变量的名称。

**`value`**   const char\*\
*is null-terminated*

（可选）变量的值。

## 要求

**头文件：** PFTypes.h

## 另请参阅

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


## Related topics

- [PFTreatmentAssignment](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/structs/pftreatmentassignment.md)
- [服务 C API 概览 - PFTypes.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/pftypes_members.md)
- [ExperimentVariable](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/experimentvariable.md)
- [D3D12_VARIABLE_SHADING_RATE_TIER](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_variable_shading_rate_tier_public.md)
- [获取处理分配](https://docs.xbox.com/zh-CN/services/playfab/api-references/rest/experimentation/experimentation/get-treatment-assignment.md)
