你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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(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