Partilhar via


ToneController.Send Method (Int32, Single)

Sends the specified tone at the specified volume.

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

Syntax

'Declaration
Public Sub Send ( _
    tone As Integer, _
    volume As Single _
)
'Usage
Dim instance As ToneController
Dim tone As Integer
Dim volume As Single

instance.Send(tone, volume)
public void Send(
    int tone,
    float volume
)

Parameters

  • volume
    Type: System.Single
    The volume, as a percent, of the tone to be sent. This value must be between 0 and 100, inclusive.

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.

Remarks

Tones will be sent only when all three of the conditions are true. - An active AudioVideoFlow is attached. - AudioVideoFlow.ToneEnabled is equal to true. - AudioVideoFlow.HoldType equals to None.

See Also

Reference

ToneController Class

ToneController Members

Send Overload

Microsoft.Rtc.Collaboration.AudioVideo Namespace