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

# XblSocialRemoveSocialRelationshipChangedHandler

> XblSocialRemoveSocialRelationshipChangedHandler

# XblSocialRemoveSocialRelationshipChangedHandler

移除社交關係變更處理常式。

## 語法

```cpp theme={null}
HRESULT XblSocialRemoveSocialRelationshipChangedHandler(  
         XblContextHandle xboxLiveContext,  
         XblFunctionContext handlerFunctionContext  
)  
```

### 參數

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

使用 XblContextCreateHandle 建立的 Xbox Live 內容控制代碼。

*handlerFunctionContext*   \_In\_\
類型：XblFunctionContext

要移除之處理常式的內容。

### 傳回值

類型：HRESULT

## 備註

\<prereq /> 只有在使用 [XblSocialAddSocialRelationshipChangedHandler](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialaddsocialrelationshipchangedhandler) 註冊事件處理常式時，才呼叫此 API。

## 需求

**標頭：** 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

- [XblSocialAddSocialRelationshipChangedHandler](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialaddsocialrelationshipchangedhandler.md)
- [處理社交關係變更](/zh-TW/services/xbox-services/community/people-system/how-to/live-handling-a-relationship-change.md)
- [XblSocialRelationship](/zh-TW/reference/live/xsapi-c/social_c/structs/xblsocialrelationship.md)
- [XblSocialGetSocialRelationshipsResult](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsresult.md)
- [XblSocialGetSocialRelationshipsAsync](/zh-TW/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md)
