Compartilhar via


CallConnection.TransferCallToParticipantAsync Método

Definição

Sobrecargas

TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken)

Transfira essa chamada para um participante.

TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken)

Transfira essa chamada para um participante.

TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken)

Origem:
CallConnection.cs
Origem:
CallConnection.cs

Transfira essa chamada para um participante.

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))

Parâmetros

options
TransferToParticipantOptions

Opções para a operação Transferir Chamada para Participante.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

options Os cabeçalhos de repetibilidade são definidos incorretamente.

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

SourceCallerId é nulo em options ao transferir a chamada para um destino PSTN.

Aplica-se a

TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken)

Origem:
CallConnection.cs
Origem:
CallConnection.cs

Transfira essa chamada para um participante.

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))

Parâmetros

targetParticipant
CommunicationIdentifier

O destino para o qual transferir a chamada.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

targetParticipant é nulo.

Aplica-se a