> ## 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](/reference/live/xsapi-c/social_c/handles/xblsocialrelationshipresulthandle)

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

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

回传查询的总结果数。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 备注

请注意，这仅是 [XblSocialGetSocialRelationshipsAsync](/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync) 请求的总结果数，可能与结果项的最大数量不同。

## 要求

**头文件：** social\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

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


## Related topics

- [XblSocialRelationshipResultGetRelationships](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetrelationships.md)
- [XblSocialGetSocialRelationshipsResult](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [XblSocialRelationshipResultGetNextResult](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextresult.md)
- [XblSocialRelationshipResultGetNextAsync](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextasync.md)
- [XblMultiplayerGetActivitiesForSocialGroupResultCount](/zh-CN/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetactivitiesforsocialgroupresultcount.md)
