This documentation is archived and is not being maintained.

Diagram.ShouldReportException Method

Verifies whether an exception that is thrown from the base design surface should be reported.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

public virtual bool ShouldReportException(
	Exception ex
)

Parameters

ex
Type: Exception

The exception to check.

Return Value

Type: Boolean
true if the exception should be reported; otherwise, false.

Critical exceptions are not reported with this method.

Show: