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

（選擇性）與要求相關聯的選擇性自訂標籤（例如組建編號、外部追蹤識別碼等）。

**`customTagsCount`**   uint32\_t

customTags 的計數

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

（選擇性）要執行此動作的選擇性實體。預設為目前登入的實體。

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

群組的識別碼。

## 需求

**標頭：** PFGroupsTypes.h

## 另請參閱

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


## Related topics

- [PFGroupsApplyToGroupAsync](/zh-TW/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupasync.md)
- [服務 C API 概觀 - PFGroupsTypes.h](/zh-TW/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [Apply To Group](/api-reference/groups/apply-to-group.md)
- [PFGroupsApplyToGroupResponse](/zh-TW/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsapplytogroupresponse.md)
- [PFGroupsApplyToGroupGetResult](/zh-TW/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupgetresult.md)
