Export (0) Print
Expand All

Chart.SuppressExceptions Property

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

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public bool SuppressExceptions { get; set; }

Property Value

Type: System.Boolean
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.

NoteNote

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft