Share via


CallConnection.TransferCallToParticipant Method

Definition

Overloads

TransferCallToParticipant(TransferToParticipantOptions, CancellationToken)

Transfer the call.

TransferCallToParticipant(CommunicationIdentifier, CancellationToken)

Transfer this call to a participant.

TransferCallToParticipant(TransferToParticipantOptions, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

Transfer the call.

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)

Parameters

options
TransferToParticipantOptions

Options for the Transfer Call To Participant operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

options Repeatability headers are set incorrectly.

The server returned an error. See Message for details returned from the server.

SourceCallerId is null in options when transferring the call to a PSTN target.

Applies to

TransferCallToParticipant(CommunicationIdentifier, CancellationToken)

Source:
CallConnection.cs
Source:
CallConnection.cs

Transfer this call to a participant.

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)

Parameters

targetParticipant
CommunicationIdentifier

The target to transfer the call to.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

targetParticipant is null.

Applies to