跳轉到主要內容
取得 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 呼叫的結果。

語法

參數

async   XAsyncBlock*
Inout
用於非同步作業的 XAsyncBlock。 entityHandle   PFEntityHandle*
output
可用來驗證其他 PlayFab API 呼叫的 PFEntityHandle。 newlyCreated   bool*
optional output
如果帳戶是在此次驗證時新建立的,則會設定為 true,否則為 false

傳回值

類型:HRESULT 此 API 作業的結果代碼。如果服務呼叫失敗,結果將為其中一個全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊,請參閱文件頁面「Handling PlayFab Errors」。

備註

如果 PFAuthenticationAuthenticateGameServerWithCustomIdAsync 呼叫失敗,entityHandle 將為 null。否則,不再需要控制代碼時,必須使用 PFEntityCloseHandle 將其關閉。

需求

標頭: PFAuthentication.h

另請參閱

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