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

# XblSocialRelationshipFilter

> XblSocialRelationshipFilter

# XblSocialRelationshipFilter

定义可用于社交组的关系筛选器。

## 语法

```cpp theme={null}
enum class XblSocialRelationshipFilter  : uint32_t  
{  
    All,  
    Favorite,  
    LegacyXboxLiveFriends  
}  
```

## 常量

| 常量                    | 说明                               |
| --------------------- | -------------------------------- |
| All                   | 用户人物列表中的所有人。                     |
| Favorite              | 仅筛选用户人物列表中带有 “Favorite” 属性的人。    |
| LegacyXboxLiveFriends | 仅筛选用户人物列表中同时也是旧版 XBOX Live 好友的人。 |

## 参数属于

[XblSocialGetSocialRelationshipsAsync](/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync)

## 要求

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

## 另请参阅

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


## Related topics

- [XblSocialGetSocialRelationshipsAsync](/zh-CN/reference/live/xsapi-c/social_c/functions/xblsocialgetsocialrelationshipsasync.md)
- [XblRelationshipFilter](/zh-CN/reference/live/xsapi-c/social_manager_c/enums/xblrelationshipfilter.md)
- [XblSocialManagerUserGroupGetFilters](/zh-CN/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetfilters.md)
- [XblSocialManagerCreateSocialUserGroupFromFilters](/zh-CN/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagercreatesocialusergroupfromfilters.md)
- [XblSocialRelationship](/zh-CN/reference/live/xsapi-c/social_c/structs/xblsocialrelationship.md)
