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)
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
ex
Type: ExceptionThe exception to check.
Return Value
Type: 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.