# USER_OFFLINE_REASON_TYPE (/zh-CN/api-reference/rtc/csharp-windows/enum-userofflinereasontype)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="enum_userofflinereasontype__parameters"></a>

## 枚举值 [#枚举值]

<ParameterList>
<a id="user_offline_quit"></a>
<Parameter name="USER_OFFLINE_QUIT">

0: 用户主动离开。

</Parameter>
<a id="user_offline_dropped"></a>
<Parameter name="USER_OFFLINE_DROPPED">

1: 因过长时间收不到对方数据包，超时掉线。

:::caution
注意： 由于 SDK 使用的是不可靠通道，也有可能对方主动离开频道，但是本地没收到对方离开消息而误判为超时掉线。
:::

</Parameter>
<a id="user_offline_become_audience"></a>
<Parameter name="USER_OFFLINE_BECOME_AUDIENCE">

2: 用户身份从主播切换为观众。

</Parameter>
</ParameterList>
