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 為 。

備註

如需詳細資訊 和範例,請參閱連線復原和資料庫重試

適用於