你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoomsClient.CreateRoom 方法

定义

重载

CreateRoom(CreateRoomOptions, CancellationToken)

创建新聊天室。

CreateRoom(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<RoomParticipant>, CancellationToken)

创建新聊天室。

CreateRoom(CreateRoomOptions, CancellationToken)

Source:
RoomsClient.cs
Source:
RoomsClient.cs

创建新聊天室。

public virtual Azure.Response<Azure.Communication.Rooms.CommunicationRoom> CreateRoom (Azure.Communication.Rooms.CreateRoomOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRoom : Azure.Communication.Rooms.CreateRoomOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Rooms.CommunicationRoom>
override this.CreateRoom : Azure.Communication.Rooms.CreateRoomOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Rooms.CommunicationRoom>
Public Overridable Function CreateRoom (options As CreateRoomOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationRoom)

参数

cancellationToken
CancellationToken

返回

适用于

CreateRoom(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<RoomParticipant>, CancellationToken)

Source:
RoomsClient.cs
Source:
RoomsClient.cs

创建新聊天室。

public virtual Azure.Response<Azure.Communication.Rooms.CommunicationRoom> CreateRoom (DateTimeOffset? validFrom = default, DateTimeOffset? validUntil = default, System.Collections.Generic.IEnumerable<Azure.Communication.Rooms.RoomParticipant> participants = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRoom : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Communication.Rooms.RoomParticipant> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Rooms.CommunicationRoom>
override this.CreateRoom : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Communication.Rooms.RoomParticipant> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Rooms.CommunicationRoom>
Public Overridable Function CreateRoom (Optional validFrom As Nullable(Of DateTimeOffset) = Nothing, Optional validUntil As Nullable(Of DateTimeOffset) = Nothing, Optional participants As IEnumerable(Of RoomParticipant) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationRoom)

参数

validUntil
Nullable<DateTimeOffset>
cancellationToken
CancellationToken

返回

适用于