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

（可选）该实体被邀请加入的组。

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

（可选）创建该邀请的实体。

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

（可选）被邀请的实体。

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

（可选）在该组中分配给用户的角色的 ID。

## 要求

**头文件：** PFGroupsTypes.h

## 另请参阅

[PFGroupsTypes 成员](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members)


## Related topics

- [PFGroupsListGroupInvitationsResponse](/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistgroupinvitationsresponse.md)
- [PFGroupsListMembershipOpportunitiesResponse](/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupslistmembershipopportunitiesresponse.md)
- [服务 C API 概览 - PFGroupsTypes.h](/zh-CN/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsListGroupInvitationsAsync](/zh-CN/services/playfab/api-references/c/pfgroups/functions/pfgroupslistgroupinvitationsasync.md)
- [PFGroupsAcceptGroupInvitationRequest](/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsacceptgroupinvitationrequest.md)
