語言

SqlServerRetryingExecutionStrategy.ShouldRetryOn(Exception) 方法

定義

判斷指定的例外是否代表可透過重試補償的暫時性故障。 可將額外的例外權限傳達給建構子重試。

protected override bool ShouldRetryOn(Exception exception);
override this.ShouldRetryOn : Exception -> bool
Protected Overrides Function ShouldRetryOn (exception As Exception) As Boolean

參數

exception
Exception

需要驗證的例外物件。

傳回

true 若指定的例外被視為暫時性,否則 false。

適用於