Partilhar via


AudioControl.Unmute Method

Unmutes the audio.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub Unmute ( _
    direction As MuteDirection _
)
'Usage
Dim instance As AudioControl
Dim direction As MuteDirection

instance.Unmute(direction)
public void Unmute(
    MuteDirection direction
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

Thrown when the AudioVideoFlow is not in the Active state or when there is no audio channel.

ArgumentException

Thrown when the direction specified is invalid.

ArgumentOutOfRangeException

Thrown when the direction specified is not a value in the MuteDirection enumerated type.

Examples

The following example unmutes the call.

C# Unmuting a call.

 

            audioVideoFlow.Audio.Unmute(MuteDirection.Send);


See Also

Reference

AudioControl Class

AudioControl Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace