This documentation is archived and is not being maintained.

Chart.SuppressExceptions Property

Gets or sets a flag that determines whether noncritical exceptions should be suppressed.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public bool SuppressExceptions { get; set; }
<asp:Chart SuppressExceptions="True|False" />

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

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: