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

# PFAccountManagementServerGetUserBansAsync

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

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

## 構文

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

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

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

**`request`**   [PFAccountManagementGetUserBansRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetuserbansrequest)

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

**`async`**   XAsyncBlock\*<br />*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

[PFAccountManagement メンバー](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)
