Mutes the audio.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
Mute ( _
	
direction 
As 

MuteDirection _
)
C#
public 
void 
Mute(
	

MuteDirection 
direction
)
Visual C++
public:
void 
Mute(
	

MuteDirection 
direction
)
JavaScript
function 
mute(
direction);

Parameters

direction
Type: Microsoft.Rtc.Collaboration.AudioVideo . . :: . MuteDirection
The direction to mute.

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.

See Also