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

# XTF_USER_DATA_V2

> XTF_USER_DATA_V2

# XTF\_USER\_DATA\_V2

描述模拟用户及该用户的年龄。

## 语法

```cpp theme={null}
typedef struct XTF_USER_DATA_V2 {  
    XTF_USER_DATA userData;  
    XTF_USER_AGE_GROUP userAgeGroup;  
} XTF_USER_DATA_V2  
```

### 成员

*userData*\
类型：[XTF\_USER\_DATA](/reference/tools/xtf/xtfuser/structures/XTF_USER_DATA-xtfuser-xbox-windows-t)

描述模拟用户的结构。

*userAgeGroup*\
类型：[XTF\_USER\_AGE\_GROUP](/reference/tools/xtf/xtfuser/enumerations/xtf_user_age_group)

指定模拟用户年龄组的枚举。

## 要求

**头文件：** xtfuser.h

**库：** xtfuser.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

## 另请参阅

[XtfUser](/reference/tools/xtf/xtfuser/xtfuser-xbox-windows-n)


## Related topics

- [IXtfUserClient::ListUsersEx](/zh-CN/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/ixtfuserclient_listusersex.md)
- [XTF_USER_DATA](/zh-CN/reference/tools/xtf/xtfuser/structures/XTF_USER_DATA-xtfuser-xbox-windows-t.md)
- [IXtfUserClient::ListUsers](/zh-CN/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/listusers-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::SignoutUser](/zh-CN/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signoutuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [XtfGetCredentialUserName](/zh-CN/reference/tools/xtf/xtfapi/functions/xtfgetcredentialusername-xtfapi-xbox-windows-m.md)
