> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFProfilesSetEntityProfilePolicyRequest

> PFProfilesSetEntityProfilePolicyRequest 数据模型。这将在给定的实体配置文件上设置访问策略语句。此操作不是累加的，任何。

PFProfilesSetEntityProfilePolicyRequest 数据模型。这将在给定的实体配置文件上设置访问策略语句。此操作不是累加的，任何现有语句都将被此请求中的语句替换。

## 语法

```cpp theme={null}
typedef struct PFProfilesSetEntityProfilePolicyRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    PFProfilesEntityPermissionStatement const* statements;  
    uint32_t statementsCount;  
} PFProfilesSetEntityProfilePolicyRequest;  
```

### 成员

**`customTags`**   [PFStringDictionaryEntry](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry.md) const\*\
*may be nullptr*

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

**`customTagsCount`**   uint32\_t

customTags 的计数

**`entity`**   [PFEntityKey](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*

要对其执行此操作的实体。

**`statements`**   [PFProfilesEntityPermissionStatement](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilesentitypermissionstatement.md) const\*

要包含在访问策略中的语句。

**`statementsCount`**   uint32\_t

statements 的计数

## 要求

**头文件：** PFProfilesTypes.h

## 另请参阅

[PFProfilesTypes 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofilestypes/pfprofilestypes_members.md)


## Related topics

- [PFProfilesSetProfilePolicyAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofiles/functions/pfprofilessetprofilepolicyasync.md)
- [Services C API overview - PFProfilesTypes.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofilestypes/pfprofilestypes_members.md)
- [Set Profile Policy](https://docs.xbox.com/api-reference/account-management/set-profile-policy.md)
- [PFProfilesSetEntityProfilePolicyResponse](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilessetentityprofilepolicyresponse.md)
- [PFProfilesSetProfilePolicyGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfprofiles/functions/pfprofilessetprofilepolicygetresult.md)
