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

# PFAccountManagementBanRequest

> PFAccountManagementBanRequest 資料模型。代表單一封鎖要求。

PFAccountManagementBanRequest 資料模型。代表單一封鎖要求。

## 語法

```cpp theme={null}
typedef struct PFAccountManagementBanRequest {  
    uint32_t const* durationInHours;  
    const char* IPAddress;  
    const char* playFabId;  
    const char* reason;  
    PFAccountManagementUserFamilyType const* userFamilyType;  
} PFAccountManagementBanRequest;  
```

### 成員

**`durationInHours`**   uint32\_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*

（選擇性）此封鎖的原因。最多 140 個字元。

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

（選擇性）應包含在封鎖中之使用者的家庭類型 (如果適用)。可能會影響多位玩家。

## 需求

**標頭：** PFAccountManagementTypes.h

## 另請參閱

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


## Related topics

- [PFAccountManagementBanUsersRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementbanusersrequest.md)
- [服務 C API 概觀 - PFAccountManagementTypes.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementUpdateBanRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebanrequest.md)
- [PFAccountManagementUpdateBansRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansrequest.md)
- [PFAccountManagementRevokeBansRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokebansrequest.md)
