語言

ExecutionStrategy.ShouldVerifySuccessOn(Exception) 方法

定義

判斷在成功執行後是否能拋出指定的例外。

protected internal virtual bool ShouldVerifySuccessOn(Exception exception);
abstract member ShouldVerifySuccessOn : Exception -> bool
override this.ShouldVerifySuccessOn : Exception -> bool
Protected Friend Overridable Function ShouldVerifySuccessOn (exception As Exception) As Boolean

參數

exception
Exception

需要驗證的例外物件。

傳回

true 如果指定的例外能在成功執行後拋出,否則 false。

備註

更多資訊與範例請參見 連線韌性與資料庫重試 。

適用於