# RtcConnection (/zh-CN/api-reference/rtc/csharp-windows/class-rtcconnection)

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

<a id="class_rtcconnection__prototype"></a>

```csharp
public class RtcConnection
    {
        public RtcConnection()
        {

        }

        public RtcConnection(string channelId, uint localUid)
        {
            this.channelId = channelId;
            this.localUid = localUid;
        }
        public string channelId { set; get; }
        public uint localUid { set; get; }
    };
```

<a id="class_rtcconnection__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="channelid"></a>
<Parameter name="channelId">

频道名。

</Parameter>
<a id="localuid"></a>
<Parameter name="localUid">

本地用户 ID。

</Parameter>
</ParameterList>
