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

Syntax

'Declaration
Public Overridable Function ShouldReportException ( _
    ex As Exception _
) As Boolean
'Usage
Dim instance As Diagram 
Dim ex As Exception 
Dim returnValue As Boolean 

returnValue = instance.ShouldReportException(ex)
public virtual bool ShouldReportException(
    Exception ex
)
public:
virtual bool ShouldReportException(
    Exception^ ex
)
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

Diagram Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace