Chart.SuppressExceptions Chart.SuppressExceptions Chart.SuppressExceptions Chart.SuppressExceptions Property


Gets or sets a flag that determines whether non-critical exceptions should be suppressed.

 property bool SuppressExceptions { bool get(); void set(bool value); };
public bool SuppressExceptions { get; set; }
member this.SuppressExceptions : bool with get, set
Public Property SuppressExceptions As Boolean

Property Value

true if non-critical exceptions should be suppressed; otherwise, false. The default value is false.


If you set this property to true, non-critical exceptions will be suppressed.

When the Chart control cannot properly plot the chart using the data and other settings provided, an exception will be thrown. Although displaying exceptions is useful during application testing, they should not be shown when the application is released.


Setting this property to true may hide serious issues in the user application source code. This setting could also cause a chart image to be generated that might misrepresent your data. It is highly recommended that this mode be only used in Release builds.

Applies to