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

CallConnection.AddParticipantAsync 方法

定义

重载

AddParticipantAsync(AddParticipantOptions, CancellationToken)

将参与者添加到通话中。

AddParticipantAsync(CallInvite, CancellationToken)

将参与者添加到通话中。

AddParticipantAsync(AddParticipantOptions, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

将参与者添加到通话中。

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

参数

options
AddParticipantOptions

“添加参与者”操作的选项。

cancellationToken
CancellationToken

取消标记。

返回

例外

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

options 为 null。

适用于

AddParticipantAsync(CallInvite, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

将参与者添加到通话中。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>> AddParticipantAsync (Azure.Communication.CallAutomation.CallInvite participantToAdd, System.Threading.CancellationToken cancellationToken = default);
abstract member AddParticipantAsync : Azure.Communication.CallAutomation.CallInvite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>>
override this.AddParticipantAsync : Azure.Communication.CallAutomation.CallInvite * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.AddParticipantResult>>
Public Overridable Function AddParticipantAsync (participantToAdd As CallInvite, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AddParticipantResult))

参数

participantToAdd
CallInvite

要添加的参与者。

cancellationToken
CancellationToken

取消标记。

返回

例外

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

participantToAdd 为 null。

适用于