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

RetryPolicy.GetNextRetryInterval(Exception, TimeSpan, Int32) 方法

定义

获取下一次重试操作的时间跨度。

public TimeSpan? GetNextRetryInterval (Exception lastException, TimeSpan remainingTime, int retryCount);
member this.GetNextRetryInterval : Exception * TimeSpan * int -> Nullable<TimeSpan>
Public Function GetNextRetryInterval (lastException As Exception, remainingTime As TimeSpan, retryCount As Integer) As Nullable(Of TimeSpan)

参数

lastException
Exception

引发的最后一个异常

remainingTime
TimeSpan

累积超时的剩余时间

retryCount
Int32

当前重试计数

返回

适用于