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

RoomsClient.CreateRoomAsync 方法

定义

重载

CreateRoomAsync(CreateRoomOptions, CancellationToken)

异步创建新聊天室。

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

异步创建新聊天室。

CreateRoomAsync(CreateRoomOptions, CancellationToken)

Source:
RoomsClient.cs
Source:
RoomsClient.cs

异步创建新聊天室。

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

参数

cancellationToken
CancellationToken

返回

一个 Task<TResult> ,表示异步操作的结果。

适用于

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

Source:
RoomsClient.cs
Source:
RoomsClient.cs

异步创建新聊天室。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Rooms.CommunicationRoom>> CreateRoomAsync (DateTimeOffset? validFrom = default, DateTimeOffset? validUntil = default, System.Collections.Generic.IEnumerable<Azure.Communication.Rooms.RoomParticipant> participants = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRoomAsync : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Communication.Rooms.RoomParticipant> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Rooms.CommunicationRoom>>
override this.CreateRoomAsync : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Communication.Rooms.RoomParticipant> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Rooms.CommunicationRoom>>
Public Overridable Function CreateRoomAsync (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 Task(Of Response(Of CommunicationRoom))

参数

validUntil
Nullable<DateTimeOffset>
cancellationToken
CancellationToken

返回

一个 Task<TResult> ,表示异步操作的结果。

适用于