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

# XblSocialGetSocialRelationshipsAsync

> XblSocialGetSocialRelationshipsAsync

# XblSocialGetSocialRelationshipsAsync

呼び出し元がソーシャル的につながっているユーザーの一覧を取得します。

## 構文

```cpp theme={null}
HRESULT XblSocialGetSocialRelationshipsAsync(  
         XblContextHandle xboxLiveContext,  
         uint64_t xboxUserId,  
         XblSocialRelationshipFilter socialRelationshipFilter,  
         size_t startIndex,  
         size_t maxItems,  
         XAsyncBlock* async  
)  
```

### パラメーター

*xboxLiveContext*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XblContextCreateHandle で作成された XBOX Live コンテキスト ハンドル。

*xboxUserId*   \_In\_\
型: uint64\_t

ソーシャル リレーションシップを取得する対象の XBOX ユーザー ID。

*socialRelationshipFilter*   \_In\_\
型: [XblSocialRelationshipFilter](/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter)

一覧のフィルター方法を制御します。

*startIndex*   \_In\_\
型: size\_t

結果一覧の開始インデックスを制御します。

*maxItems*   \_In\_\
型: size\_t

結果一覧に含めることができる項目の最大数。すべての項目の取得を試みるには 0 を渡します。

*async*   \_In\_\
型: XAsyncBlock\*

呼び出し元によって割り当てられた [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

結果を取得するには [XblSocialGetSocialRelationshipsResult](/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult) を呼び出します。

## REST 呼び出し

V1 GET /users/{ownerId}/people?view={view}\&startIndex={startIndex}\&maxItems={maxItems}

## 要件

**ヘッダー:** social\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblSocialGetSocialRelationshipsResult](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [XblSocialRelationshipFilter](/ja-jp/reference/live/xsapi-c/social_c/enums/xblsocialrelationshipfilter.md)
- [XblSocialRelationshipResultGetTotalCount](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgettotalcount.md)
- [XblSocialRelationshipResultGetNextAsync](/ja-jp/reference/live/xsapi-c/social_c/functions/xblsocialrelationshipresultgetnextasync.md)
- [ソーシャル リレーションシップの取得](/ja-jp/services/xbox-services/community/people-system/how-to/live-getting-a-social-relationship.md)
