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

# XblSocialManagerGetLocalUserCount

> XblSocialManagerGetLocalUserCount

# XblSocialManagerGetLocalUserCount

SocialManager によって現在追跡されているローカル ユーザーの数を取得します。

## 構文

```cpp theme={null}
size_t XblSocialManagerGetLocalUserCount(  
)  
```

### パラメーター

### 戻り値

型: size\_t

SocialManager によって現在追跡されているローカル ユーザーの数。

## 解説

追跡対象としてローカル ユーザーを追加するには、[XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser) を呼び出します。追跡対象からローカル ユーザーを削除するには、[XblSocialManagerRemoveLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser) を呼び出します。この関数は、[XblSocialManagerGetLocalUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers) を呼び出す前に呼び出す必要があります。

## 要件

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

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

## 関連項目

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerGetLocalUsers](/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [XblSocialManagerUserGroupGetLocalUser](/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetlocaluser.md)
- [XblSocialManagerAddLocalUser](/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
- [XblSocialManagerRemoveLocalUser](/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser.md)
- [XblSocialManagerUserGroupGetUsers](/ja-jp/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
