# FUABT_RtcConnection (/zh-CN/api-reference/rtc/unreal-blueprint/class-rtcconnection)

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

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

```cpp
USTRUCT(BlueprintType)
struct FRtcConnection
{
	GENERATED_BODY()
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|RtcConnection")
	FString channelId = "";
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|RtcConnection")
	int64 localUid = 0;
	FRtcConnection(){}
	FRtcConnection(const agora::rtc::RtcConnection & AgoraData){
		channelId = UTF8_TO_TCHAR(AgoraData.channelId);
		localUid = AgoraData.localUid;
	}
	agora::rtc::RtcConnection CreateAgoraData() const {
		agora::rtc::RtcConnection AgoraData;
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.channelId, this->channelId)
		AgoraData.localUid = localUid;
		return AgoraData;
	}
	void FreeAgoraData(agora::rtc::RtcConnection & AgoraData) const {
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.channelId)
	}

};
```

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