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

CallConnection.GetParticipantsAsync(CancellationToken) 方法

定义

从通话中获取参与者。

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.CallAutomation.CallParticipant>>> GetParticipantsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetParticipantsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.CallAutomation.CallParticipant>>>
override this.GetParticipantsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.CallAutomation.CallParticipant>>>
Public Overridable Function GetParticipantsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of CallParticipant)))

参数

cancellationToken
CancellationToken

取消标记。

返回

IEnumerable<T>

例外

服务器返回错误。 有关从服务器返回的详细信息,请参阅 Message

适用于