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

# XblSocialRelationshipResultGetTotalCount

> XblSocialRelationshipResultGetTotalCount

# XblSocialRelationshipResultGetTotalCount

取得 XblSocialRelationshipResultHandle 的結果總數。

## 語法

```cpp theme={null}
HRESULT XblSocialRelationshipResultGetTotalCount(  
         XblSocialRelationshipResultHandle resultHandle,  
         size_t* totalCount  
)  
```

### 參數

*resultHandle*   \_In\_\
類型：[XblSocialRelationshipResultHandle](/zh-TW/reference/live/xsapi-c/social_c/handles/xblsocialrelationshipresulthandle)

來自 [XblSocialGetSocialRelationshipsResult](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult) 的 XblSocialRelationshipResultHandle。

*totalCount*   \_Out\_\
類型：size\_t\*

傳回查詢的結果總數。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 備註

請注意，這只是 [XblSocialGetSocialRelationshipsAsync](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync) 所要求的結果總數，可能與結果項目數目上限不同。

## 需求

**標頭：** social\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[social\_c](/zh-TW/reference/live/xsapi-c/social_c/social_c_members)


## Related topics

- [XblSocialRelationshipResultGetRelationships](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships.md)
- [XblSocialGetSocialRelationshipsResult](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [XblSocialRelationshipResultGetNextResult](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextresult.md)
- [XblSocialRelationshipResultGetNextAsync](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextasync.md)
- [XblPresenceGetPresenceForSocialGroupResultCount](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceforsocialgroupresultcount.md)
