PolyTone.EnableCtorExceptions Property

Determines whether or not exceptions can be raised by PolyTone constructors.

Syntax

[C#]
public static bool EnableCtorExceptions { get; set; }

Property Values

true
Fault conditions encountered during constructor execution (such as invalid or malformed Tone arguments) will raise exceptions containing a descriptive Message string property.

false
(Default) Fault conditions encountered during constructor execution logs the error as a message string that can be retrieved via the LastResultMessage property, but no exceptions are raised.

Notes

IsPlayable can also be used to determine if a constructor executed successfully or not.

More Information

PolyTone Class