SEHException.CanResume 方法

定义

指示是否可以从异常中恢复,以及代码是否可以从引发异常的地方继续。Indicates whether the exception can be recovered from, and whether the code can continue from the point at which the exception was thrown.

public:
 virtual bool CanResume();
public virtual bool CanResume ();
abstract member CanResume : unit -> bool
override this.CanResume : unit -> bool
Public Overridable Function CanResume () As Boolean

返回

始终为 false,因为未实现可恢复的异常。Always false, because resumable exceptions are not implemented.

注解

如果 CanResume 返回 true,则筛选的异常处理程序可以更正导致此异常的问题,而代码将从引发异常的点继续。If CanResume returns true, then a filtered exception handler can correct the problem that caused the exception, and the code will continue from the point at which the exception was thrown.

适用于