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

# PFLeaderboardsGetLeaderboardForEntitiesGetResultSize

> 取得儲存 GetLeaderboardForEntities 呼叫結果所需的位元組大小。

取得儲存 GetLeaderboardForEntities 呼叫結果所需的位元組大小。

## 語法

```cpp theme={null}
HRESULT PFLeaderboardsGetLeaderboardForEntitiesGetResultSize(  
    XAsyncBlock* async,  
    size_t* bufferSize  
)  
```

### 參數

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

用於非同步作業的 XAsyncBlock。

**`bufferSize`**   size\_t\*<br />*output*

結果所需的緩衝區大小（以位元組為單位）。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_API\_NOT\_ENABLED\_FOR\_TITLE、E\_PF\_LEADERBOARD\_NOT\_FOUND、E\_PF\_NO\_LEADERBOARD\_FOR\_STATISTIC、E\_PF\_SPECIFIED\_VERSION\_LEADERBOARD\_NOT\_FOUND、E\_PF\_STATISTIC\_NOT\_FOUND 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFLeaderboards.h

## 另請參閱

[PFLeaderboards 成員](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)


## Related topics

- [PFLeaderboardsGetLeaderboardForEntitiesAsync](/zh-TW/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesasync.md)
- [服務 C API 概觀 - PFLeaderboards.h](/zh-TW/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsGetLeaderboardForEntitiesGetResult](/zh-TW/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardforentitiesgetresult.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityGetResultSize](/zh-TW/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentitygetresultsize.md)
- [PFLeaderboardsGetLeaderboardAroundEntityGetResultSize](/zh-TW/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboardaroundentitygetresultsize.md)
