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
ex
Type: System.ExceptionThe exception to check.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.