跳轉到主要內容
撤銷以 BanId 指定的所有作用中封鎖。

語法

參數

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

傳回值

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

備註

此 API 適用於 Win32、Linux 和 macOS。將所有要求之封鎖的作用中狀態設定為 Inactive,無論該封鎖是否已過期。不存在的 BanId 將會被略過。僅傳回已套用更新的相關資訊。另請參閱 ServerBanUsersAsync、ServerGetUserBansAsync、ServerRevokeAllBansForUserAsync、ServerUpdateBansAsync。非同步工作完成時,請呼叫 PFAccountManagementServerRevokeBansGetResultSize 和 PFAccountManagementServerRevokeBansGetResult 以取得結果。

需求

標頭: PFAccountManagement.h

另請參閱

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