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

# PFGroupsApplyToGroupRequest

> PFGroupsApplyToGroupRequest 数据模型。创建加入组的申请。当组申请已存在时调用此方法将返回相同的申请。

PFGroupsApplyToGroupRequest 数据模型。创建加入组的申请。当组申请已存在时调用此方法将返回相同的申请而不是错误，且不会刷新申请到期前的时间。默认情况下，如果该实体已有加入该组的未处理邀请，此调用将改为接受该邀请并返回相应的错误，而不是创建以后需要清理的重复加入申请。返回有关申请的信息，或指示已接受邀请的错误。

## 语法

```cpp theme={null}
typedef struct PFGroupsApplyToGroupRequest {  
    bool const* autoAcceptOutstandingInvite;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    PFEntityKey const* group;  
} PFGroupsApplyToGroupRequest;  
```

### 成员

**`autoAcceptOutstandingInvite`**   bool const\*<br />*may be nullptr*

（可选）可选，默认为 true。如果存在未处理邀请，则自动接受该邀请而不是创建申请。

**`customTags`**   [PFStringDictionaryEntry](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

（可选）与请求关联的可选自定义标记（例如生成号、外部跟踪标识符等）。

**`customTagsCount`**   uint32\_t

customTags 的数量

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

（可选）要在其上执行此操作的可选实体。默认为当前登录的实体。

**`group`**   [PFEntityKey](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*

组的标识符。

## 要求

**头文件：** PFGroupsTypes.h

## 另请参阅

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


## Related topics

- [PFGroupsApplyToGroupAsync](/zh-CN/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupasync.md)
- [服务 C API 概览 - PFGroupsTypes.h](/zh-CN/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsApplyToGroupResponse](/zh-CN/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsapplytogroupresponse.md)
- [PFGroupsApplyToGroupGetResult](/zh-CN/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupgetresult.md)
- [PFGroupsApplyToGroupGetResultSize](/zh-CN/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupgetresultsize.md)
