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

# 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](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*<br />*may be nullptr*

（選擇性）群組的 ID。

**`groupName`**   const char\*<br />*is null-terminated*

（選擇性）群組的名稱。

**`profileVersion`**   int32\_t

設定檔的目前版本，可用於更新期間的並行控制。

**`roles`**   [PFGroupsGroupRole](/zh-TW/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsgrouprole) const\*<br />*may be nullptr*

（選擇性）群組內的角色清單。

**`rolesCount`**   uint32\_t

roles 的計數

## 需求

**標頭：** PFGroupsTypes.h

## 另請參閱

[PFGroupsTypes 成員](/zh-TW/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members)


## Related topics

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