Chart.SuppressExceptions Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a flag that determines whether non-critical exceptions should be suppressed.
public:
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
.
Remarks
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.
Note
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.