你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RetryPolicy.IsRetryableException(Exception) 方法

定义

确定是否允许在指定的异常后重试。

protected abstract bool IsRetryableException (Exception lastException);
abstract member IsRetryableException : Exception -> bool
Protected MustOverride Function IsRetryableException (lastException As Exception) As Boolean

参数

lastException
Exception

最近发生的异常。

返回

如果此方法返回 false,则不会重试。 否则, OnShouldRetry(TimeSpan, Int32, TimeSpan) 方法确定何时重试。

适用于