Sends the specified tone at the specified volume.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
Send ( _
	
tone 
As 

ToneId, _
	
volume 
As 
Single _
)
C#
public 
void 
Send(
	

ToneId 
tone,
	
float 
volume
)
Visual C++
public:
void 
Send(
	

ToneId 
tone, 
	
float 
volume
)
JavaScript
function 
send(
tone, 
volume);

Parameters

tone
Type: Microsoft.Rtc.Collaboration.AudioVideo . . :: . ToneId
The tone to be sent.
volume
Type: Single
The volume, as a percent, of the tone to be sent. This value must be between 0 and 100, inclusive.

Remarks

Tones will be sent only when all four affirmatives below apply: - An active AudioVideoFlow is attached - AudioVideoFlow.ToneEnabled is equal to true - AudioVideoFlow is not on hold - AudioVideoFlow's AudioChannel.Direction is SendReceive or SendOnly

Exceptions

Exception Condition
ArgumentOutOfRangeException Thrown when the tone is out of range (less than MinTone or greater than MaxTone), or when volume is negative or larger than 100.

See Also