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

# XblSocialManagerRemoveLocalUser

> XblSocialManagerRemoveLocalUser

# XblSocialManagerRemoveLocalUser

立即移除指定本機使用者的社交圖表。

## 語法

```cpp theme={null}
HRESULT XblSocialManagerRemoveLocalUser(  
         XblUserHandle user  
)  
```

### 參數

*user*   \_In\_\
類型：XblUserHandle

要移除的 XBOX Live 使用者。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 備註

移除使用者時，其社交圖表和使用者群組也會一併終結。使用者被移除之後，將不會再有與該使用者相關聯的事件。只有在已使用 [XblSocialManagerAddLocalUser](/zh-TW/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser) 為本機使用者建立社交圖表時，才呼叫此 API。

## 需求

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

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

## 另請參閱

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


## Related topics

- [XblSocialManagerAddLocalUser](/zh-TW/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
- [XblSocialManagerGetLocalUserCount](/zh-TW/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusercount.md)
- [社交管理員概觀](/zh-TW/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblSocialManagerGetLocalUsers](/zh-TW/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [XblAchievementsManagerRemoveLocalUser](/zh-TW/reference/live/xsapi-c/achievements_manager_c/functions/xblachievementsmanagerremovelocaluser.md)
