CallConnection.TransferCallToParticipantAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken) |
Transfer this call to a participant. |
TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken) |
Transfer this call to a participant. |
TransferCallToParticipantAsync(TransferToParticipantOptions, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
Transfer this call to a participant.
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))
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
TransferCallToParticipantAsync(CommunicationIdentifier, CancellationToken)
- Source:
- CallConnection.cs
- Source:
- CallConnection.cs
Transfer this call to a participant.
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))
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
Azure SDK for .NET