次の方法で共有


Diagram.ShouldReportException(Exception) Method

Definition

Called when a transaction created by the core design surface throws an exception. Derived classes can override this method to customise whether the error is reported if it is being swallowed. Note that critical exceptions will be thrown upwards and won't be reported - so there is no additional check required.

public:
 virtual bool ShouldReportException(Exception ^ ex);
public virtual bool ShouldReportException (Exception ex);
abstract member ShouldReportException : Exception -> bool
override this.ShouldReportException : Exception -> bool
Public Overridable Function ShouldReportException (ex As Exception) As Boolean

Parameters

ex
Exception

An exception thrown durign a core design surface transaction.

Returns

True if the error should be reported

Applies to