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

CallConnection.TransferCallToParticipantAsync 方法

定义

重载

TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken)

将此呼叫转接给参与者。

TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken)

将此呼叫转接给参与者。

TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

将此呼叫转接给参与者。

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

参数

options
TransferToParticipantOptions

转移呼叫参与者操作的选项。

cancellationToken
CancellationToken

取消标记。

返回

例外

options 重复性标头设置不正确。

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

将呼叫转移到 PSTN 目标时,SourceCallerId 为 options null。

适用于

TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

将此呼叫转接给参与者。

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

参数

targetParticipant
CommunicationIdentifier

要转移调用的目标。

cancellationToken
CancellationToken

取消标记。

返回

例外

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

targetParticipant 为 null。

适用于