跳轉到主要內容
撤銷使用者的所有作用中封鎖。

語法

參數

titleEntityHandle   PFEntityHandle 使用 PFAuthenticationGetEntityWithSecretKeyAsync 取得之遊戲 Entity 的 PFEntityHandle。 request   PFAccountManagementRevokeAllBansForUserRequest* 已填入的要求物件。 async   XAsyncBlock*
Inout
用於非同步作業的 XAsyncBlock。

傳回值

類型:HRESULT 此 API 作業的結果代碼。

備註

此 API 適用於 Win32、Linux 和 macOS。將使用者所有未過期封鎖的作用中狀態設定為 Inactive。不過,狀態為 Active 的已過期封鎖將會被忽略。僅傳回已套用更新的相關資訊。另請參閱 ServerBanUsersAsync、ServerGetUserBansAsync、ServerRevokeBansAsync、ServerUpdateBansAsync。非同步工作完成時,請呼叫 PFAccountManagementServerRevokeAllBansForUserGetResultSize 和 PFAccountManagementServerRevokeAllBansForUserGetResult 以取得結果。

需求

標頭: PFAccountManagement.h

另請參閱

PFAccountManagement 成員
最後修改於 2026年10月6日