DevForce Help Reference
ShouldRetry Method (IRetryPolicy)


Indicates the interval to wait until the next retry.
Determines whether the operation should be retried and the interval until the next retry.
Syntax
'Declaration
 
Function ShouldRetry( _
   ByVal currentRetryCount As Integer, _
   ByVal exception As Exception, _
   ByRef delay As TimeSpan _
) As Boolean
'Usage
 
Dim instance As IRetryPolicy
Dim currentRetryCount As Integer
Dim exception As Exception
Dim delay As TimeSpan
Dim value As Boolean
 
value = instance.ShouldRetry(currentRetryCount, exception, delay)

Parameters

currentRetryCount
exception
delay
Indicates the interval to wait until the next retry.

Return Value

True if the operation should be retried; otherwise, false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IRetryPolicy Interface
IRetryPolicy Members

Send Feedback