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

# PFGroupsGroupInvitation

> PFGroupsGroupInvitation 資料模型。描述群組的邀請。

PFGroupsGroupInvitation 資料模型。描述群組的邀請。

## 語法

```cpp theme={null}
typedef struct PFGroupsGroupInvitation {  
    time_t expires;  
    PFEntityKey const* group;  
    PFGroupsEntityWithLineage const* invitedByEntity;  
    PFGroupsEntityWithLineage const* invitedEntity;  
    const char* roleId;  
} PFGroupsGroupInvitation;  
```

### 成員

**`expires`**   time\_t

邀請到期並被刪除的時間。

**`group`**   [PFEntityKey](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*<br />*may be nullptr*

（選擇性）實體受邀加入的群組。

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

（選擇性）建立邀請的實體。

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

（選擇性）受邀的實體。

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

（選擇性）要將使用者指派到之群組角色的 ID。

## 需求

**標頭：** PFGroupsTypes.h

## 另請參閱

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


## Related topics

- [PFGroupsListGroupInvitationsResponse](/zh-TW/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistgroupinvitationsresponse.md)
- [PFGroupsListMembershipOpportunitiesResponse](/zh-TW/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesresponse.md)
- [服務 C API 概觀 - PFGroupsTypes.h](/zh-TW/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [List Group Invitations](/api-reference/groups/list-group-invitations.md)
- [Remove Group Invitation](/api-reference/groups/remove-group-invitation.md)
