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

（選擇性）與此封鎖相關聯的唯一封鎖識別碼。

**`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 指派給要執行作業之使用者的唯一識別碼。

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

（選擇性）套用此封鎖的原因。

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

（選擇性）包含在封鎖中之使用者的家庭類型。

## 需求

**標頭：** PFAccountManagementTypes.h

## 另請參閱

[PFAccountManagementTypes 成員](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

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