Share via


CallMedia.Hold Method

Definition

Overloads

Hold(HoldOptions, CancellationToken)

Hold participant from the call.

Hold(CommunicationIdentifier, CancellationToken)

Hold participant from the call.

Hold(CommunicationIdentifier, PlaySource, CancellationToken)

Hold participant from the call.

Hold(HoldOptions, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

options
HoldOptions

The options.

cancellationToken
CancellationToken

Returns

Applies to

Hold(CommunicationIdentifier, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

targetParticipant
CommunicationIdentifier

The targetParticipant.

cancellationToken
CancellationToken

Returns

Applies to

Hold(CommunicationIdentifier, PlaySource, CancellationToken)

Source:
CallMedia.cs

Hold participant from the call.

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

Parameters

targetParticipant
CommunicationIdentifier

The targetParticipant.

playSource
PlaySource

The playsource.

cancellationToken
CancellationToken

Returns

Applies to