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

# PFAccountManagementServerGetUserBansAsync

> ユーザーのすべての禁止を取得します。

ユーザーのすべての禁止を取得します。

## 構文

```cpp theme={null}
HRESULT PFAccountManagementServerGetUserBansAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFAccountManagementGetUserBansRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync を使用して取得したタイトル Entity 用の PFEntityHandle。

**`request`**   [PFAccountManagementGetUserBansRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetuserbansrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は、Win32、Linux、macOS で使用できます。非アクティブな禁止や期限切れの禁止を含む、ユーザーのすべての禁止を取得します。ServerBanUsersAsync、ServerRevokeAllBansForUserAsync、ServerRevokeBansAsync、ServerUpdateBansAsync も参照してください。非同期タスクが完了したら、[PFAccountManagementServerGetUserBansGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetuserbansgetresultsize.md) と [PFAccountManagementServerGetUserBansGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetuserbansgetresult.md) を呼び出して結果を取得します。

## 要件

**ヘッダー:** PFAccountManagement.h

## 関連項目

[PFAccountManagement メンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [PFAccountManagementServerGetUserBansGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetuserbansgetresult.md)
- [PFAccountManagementServerBanUsersAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverbanusersasync.md)
- [PFAccountManagementServerBanUsersGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverbanusersgetresult.md)
- [PFAccountManagementServerRevokeAllBansForUserAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverrevokeallbansforuserasync.md)
- [PFAccountManagementServerUpdateBansAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverupdatebansasync.md)
