Share via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaration
Public Overridable Function ShouldReportException ( _
    ex As Exception _
) As Boolean
public virtual bool ShouldReportException(
    Exception ex
)
public:
virtual bool ShouldReportException(
    Exception^ ex
)
abstract ShouldReportException : 
        ex:Exception -> bool 
override ShouldReportException : 
        ex:Exception -> bool 
public function ShouldReportException(
    ex : Exception
) : boolean

Parameters

Return Value

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

Remarks

Critical exceptions are not reported with this method.

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace