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

# PFAccountManagementBanInfo

> PFAccountManagementBanInfo 数据模型。 包含封禁的信息。

PFAccountManagementBanInfo 数据模型。 包含封禁的信息。

## 语法

```cpp theme={null}
typedef struct PFAccountManagementBanInfo {  
    bool active;  
    const char* banId;  
    time_t const* created;  
    time_t const* expires;  
    const char* IPAddress;  
    const char* playFabId;  
    const char* reason;  
    const char* userFamilyType;  
} PFAccountManagementBanInfo;  
```

### 成员

**`active`**   bool

此封禁的活动状态。 已过期的封禁仍可能将此值设置为 true，但它们不会产生任何效果。

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

（可选）与此封禁关联的唯一 Ban Id。

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

（可选）应用此封禁的时间。

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

（可选）此封禁过期的时间。 永久封禁没有过期日期。

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

（可选）应用封禁的 IP 地址。 可能影响多个玩家。

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

（可选）将对其执行操作的用户的 PlayFab 分配的唯一 ID。

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

（可选）应用此封禁的原因。

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

（可选）包含在封禁中的用户的家庭类型。

## 要求

**头文件：** PFAccountManagementTypes.h

## 另请参阅

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


## Related topics

- [PFAccountManagementRevokeBansResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokebansresult.md)
- [PFAccountManagementBanUsersResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementbanusersresult.md)
- [PFAccountManagementUpdateBansResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansresult.md)
- [PFAccountManagementGetUserBansResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetuserbansresult.md)
- [PFAccountManagementRevokeAllBansForUserResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokeallbansforuserresult.md)
