你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CallConnection.TransferCallToParticipant 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TransferCallToParticipant(TransferToParticipantOptions, CancellationToken) |
转移呼叫。 |
TransferCallToParticipant(CommunicationIdentifier, CancellationToken) |
将此呼叫转接给参与者。 |
TransferCallToParticipant(TransferToParticipantOptions, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
转移呼叫。
public virtual Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult> TransferCallToParticipant (Azure.Communication.CallAutomation.TransferToParticipantOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member TransferCallToParticipant : Azure.Communication.CallAutomation.TransferToParticipantOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult>
override this.TransferCallToParticipant : Azure.Communication.CallAutomation.TransferToParticipantOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult>
Public Overridable Function TransferCallToParticipant (options As TransferToParticipantOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TransferCallToParticipantResult)
参数
- options
- TransferToParticipantOptions
转移呼叫参与者操作的选项。
- cancellationToken
- CancellationToken
取消标记。
返回
例外
options
重复性标头设置不正确。
服务器返回错误。 有关从服务器返回的详细信息,请参阅 Message 。
将呼叫转移到 PSTN 目标时,SourceCallerId 为 options
null。
适用于
TransferCallToParticipant(CommunicationIdentifier, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
将此呼叫转接给参与者。
public virtual Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult> TransferCallToParticipant (Azure.Communication.CommunicationIdentifier targetParticipant, System.Threading.CancellationToken cancellationToken = default);
abstract member TransferCallToParticipant : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult>
override this.TransferCallToParticipant : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.TransferCallToParticipantResult>
Public Overridable Function TransferCallToParticipant (targetParticipant As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TransferCallToParticipantResult)
参数
- targetParticipant
- CommunicationIdentifier
要转移调用的目标。
- cancellationToken
- CancellationToken
取消标记。
返回
例外
服务器返回错误。 有关从服务器返回的详细信息,请参阅 Message 。
targetParticipant
为 null。