Share via


CallMedia.HoldAsync Method

Definition

Overloads

HoldAsync(HoldOptions, CancellationToken)

Hold participant from the call.

HoldAsync(CommunicationIdentifier, CancellationToken)

Hold participant from the call.

HoldAsync(CommunicationIdentifier, PlaySource, CancellationToken)

Hold participant from the call.

HoldAsync(HoldOptions, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

options
HoldOptions

The options.

cancellationToken
CancellationToken

Returns

Applies to

HoldAsync(CommunicationIdentifier, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

targetParticipant
CommunicationIdentifier

The targetParticipant.

cancellationToken
CancellationToken

Returns

Applies to

HoldAsync(CommunicationIdentifier, PlaySource, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

targetParticipant
CommunicationIdentifier

The targetParticipant.

playSource
PlaySource

The playsource.

cancellationToken
CancellationToken

Returns

Applies to