Dela via


CallConnection.MuteParticipantAsync Method

Definition

Overloads

MuteParticipantAsync(MuteParticipantOptions, CancellationToken)

Mute participants on the call.

MuteParticipantAsync(CommunicationIdentifier, CancellationToken)

Mute participants on the call. Only Acs Users are currently supported.

MuteParticipantAsync(CommunicationIdentifier, String, CancellationToken)

Mute participants on the call. Only Acs Users are currently supported.

MuteParticipantAsync(MuteParticipantOptions, CancellationToken)

Source:
CallConnection.cs

Mute participants on the call.

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

Parameters

options
MuteParticipantOptions

Options for the MuteParticipant operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

options is null.

options OperationContext is too long.

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

Applies to

MuteParticipantAsync(CommunicationIdentifier, CancellationToken)

Source:
CallConnection.cs

Mute participants on the call. Only Acs Users are currently supported.

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

Parameters

targetParticipant
CommunicationIdentifier

Participants to mute.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

targetParticipant is null.

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

Applies to

MuteParticipantAsync(CommunicationIdentifier, String, CancellationToken)

Source:
CallConnection.cs

Mute participants on the call. Only Acs Users are currently supported.

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

Parameters

targetParticipant
CommunicationIdentifier

Participants to mute.

operationContext
String

The Operation Context.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

targetParticipant is null.

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

Applies to