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

CallConnection.MuteParticipant Method

Definition

Overloads

MuteParticipant(MuteParticipantOptions, CancellationToken)

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

MuteParticipant(CommunicationIdentifier, CancellationToken)

Mute participant from the call. Only Acs Users are currently supported.

MuteParticipant(MuteParticipantOptions, CancellationToken)

Source:
CallConnection.cs

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

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

Parameters

options
MuteParticipantOptions

Options for the MuteParticipant operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Response containing MuteParticipantResult.

Exceptions

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

options is null.

Applies to

MuteParticipant(CommunicationIdentifier, CancellationToken)

Source:
CallConnection.cs

Mute participant from the call. Only Acs Users are currently supported.

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

Parameters

targetParticipant
CommunicationIdentifier

Participant to mute.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Response containing MuteParticipantResult.

Exceptions

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

targetParticipant is null.

Applies to