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

# PFGroupsGroupWithRoles

> PFGroupsGroupWithRoles 数据模型。描述一个组及其包含的角色。

PFGroupsGroupWithRoles 数据模型。描述一个组及其包含的角色。

## 语法

```cpp theme={null}
typedef struct PFGroupsGroupWithRoles {  
    PFEntityKey const* group;  
    const char* groupName;  
    int32_t profileVersion;  
    PFGroupsGroupRole const* roles;  
    uint32_t rolesCount;  
} PFGroupsGroupWithRoles;  
```

### 成员

**`group`**   [PFEntityKey](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*\
*may be nullptr*

（可选）组的 ID。

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

（可选）组的名称。

**`profileVersion`**   int32\_t

当前配置文件版本，可用于更新期间的并发控制。

**`roles`**   [PFGroupsGroupRole](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole.md) const\*\
*may be nullptr*

（可选）组内角色的列表。

**`rolesCount`**   uint32\_t

roles 的数量

## 要求

**头文件：** PFGroupsTypes.h

## 另请参阅

[PFGroupsTypes 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)


## Related topics

- [PFGroupsListMembershipResponse](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipresponse.md)
- [PFGroupsGroupRole](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole.md)
- [group_role_updated](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/Groups/group-role-updated.md)
- [group_role_created](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/Groups/group-role-created.md)
- [group_role_deleted](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/Groups/group-role-deleted.md)
