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

RetryPolicy 构造函数

定义

重载

RetryPolicy(ITransientErrorDetectionStrategy, RetryStrategy)
RetryPolicy(ITransientErrorDetectionStrategy, Int32)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan, TimeSpan)

RetryPolicy(ITransientErrorDetectionStrategy, RetryStrategy)

public RetryPolicy (Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy errorDetectionStrategy, Microsoft.Rest.TransientFaultHandling.RetryStrategy retryStrategy);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy * Microsoft.Rest.TransientFaultHandling.RetryStrategy -> Microsoft.Rest.TransientFaultHandling.RetryPolicy
Public Sub New (errorDetectionStrategy As ITransientErrorDetectionStrategy, retryStrategy As RetryStrategy)

参数

errorDetectionStrategy
ITransientErrorDetectionStrategy
retryStrategy
RetryStrategy

适用于

RetryPolicy(ITransientErrorDetectionStrategy, Int32)

public RetryPolicy (Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy errorDetectionStrategy, int retryCount);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy * int -> Microsoft.Rest.TransientFaultHandling.RetryPolicy
Public Sub New (errorDetectionStrategy As ITransientErrorDetectionStrategy, retryCount As Integer)

参数

errorDetectionStrategy
ITransientErrorDetectionStrategy
retryCount
Int32

适用于

RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan)

public RetryPolicy (Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy errorDetectionStrategy, int retryCount, TimeSpan retryInterval);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy * int * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy
Public Sub New (errorDetectionStrategy As ITransientErrorDetectionStrategy, retryCount As Integer, retryInterval As TimeSpan)

参数

errorDetectionStrategy
ITransientErrorDetectionStrategy
retryCount
Int32
retryInterval
TimeSpan

适用于

RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan)

public RetryPolicy (Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy errorDetectionStrategy, int retryCount, TimeSpan initialInterval, TimeSpan increment);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy * int * TimeSpan * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy
Public Sub New (errorDetectionStrategy As ITransientErrorDetectionStrategy, retryCount As Integer, initialInterval As TimeSpan, increment As TimeSpan)

参数

errorDetectionStrategy
ITransientErrorDetectionStrategy
retryCount
Int32
initialInterval
TimeSpan
increment
TimeSpan

适用于

RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan, TimeSpan)

public RetryPolicy (Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy errorDetectionStrategy, int retryCount, TimeSpan minBackoff, TimeSpan maxBackoff, TimeSpan deltaBackoff);
new Microsoft.Rest.TransientFaultHandling.RetryPolicy : Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy * int * TimeSpan * TimeSpan * TimeSpan -> Microsoft.Rest.TransientFaultHandling.RetryPolicy
Public Sub New (errorDetectionStrategy As ITransientErrorDetectionStrategy, retryCount As Integer, minBackoff As TimeSpan, maxBackoff As TimeSpan, deltaBackoff As TimeSpan)

参数

errorDetectionStrategy
ITransientErrorDetectionStrategy
retryCount
Int32
minBackoff
TimeSpan
maxBackoff
TimeSpan
deltaBackoff
TimeSpan

适用于