Tone.IsAudioToneSupported Property

Returns a bool indicating whether or not the Tone class is supported by a specific computer.

Syntax

public static bool IsAudioToneSupported

Property Values

true
Tone class is supported.

false
Tone class is not supported.

Notes

Honeywell recommends you use this property as a precursor to calling other members of the Tone and PolyTone classes.

By default, when Tone class constructors and methods are called while running on an unsupported computer, they return error codes that can be tested using helper methods. However, if, under these circumstances, the EnableExceptions property is set to true, an AudioToneException is raised by Tone methods but not by Tone constructors. The same behavior applies to static methods when EnableStaticExceptions has been set to true.

More Information

Tone Class