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

# PFAccountManagementUpdateBanRequest

> PFAccountManagementUpdateBanRequest 数据模型。表示单个更新禁令请求。

PFAccountManagementUpdateBanRequest 数据模型。表示单个更新禁令请求。

## 语法

```cpp theme={null}
typedef struct PFAccountManagementUpdateBanRequest {  
    bool const* active;  
    const char* banId;  
    time_t const* expires;  
    const char* IPAddress;  
    bool const* permanent;  
    const char* reason;  
    PFAccountManagementUserFamilyType const* userFamilyType;  
} PFAccountManagementUpdateBanRequest;  
```

### 成员

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

（可选）更新后的禁令激活状态。为 Null 表示不更改。

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

要更新的禁令的 ID。

**`expires`**   time\_t const\*<br />*may be nullptr*

（可选）更新后的禁令过期日期。为 Null 表示不更改。

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

（可选）更新后的禁令的 IP 地址。为 Null 表示不更改。

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

（可选）是否使此禁令永久生效。设置为 true 可使此禁令永久生效。这不会修改激活状态。

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

（可选）要更新的禁令的更新后原因。最多 140 个字符。为 Null 表示不更改。

**`userFamilyType`**   [PFAccountManagementUserFamilyType](/services/playfab/api-references/c/pfaccountmanagementtypes/enums/pfaccountmanagementuserfamilytype) const\*<br />*may be nullptr*

（可选）应包含在禁令中的用户的更新后家庭类型。为 Null 表示不更改。

## 要求

**头文件：** PFAccountManagementTypes.h

## 另请参阅

[PFAccountManagementTypes 成员](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementUpdateBansRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansrequest.md)
- [服务 C API 概览 - PFAccountManagementTypes.h](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementServerUpdateBansAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverupdatebansasync.md)
- [PFAccountManagementUpdateBansResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansresult.md)
- [PFAccountManagementBanRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementbanrequest.md)
