RetryPolicies.Retry Method

Storage Client Library NET API

[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]

Returns a retry policy that retries a specified number of times, with a specified fixed time interval between retries.

Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim retryCount As Integer
Dim intervalBetweenRetries As TimeSpan
Dim returnValue As RetryPolicy

returnValue = RetryPolicies.Retry(retryCount, intervalBetweenRetries)

Syntax

Visual Basic
Public Shared Function Retry ( _
	retryCount As Integer, _
	intervalBetweenRetries As TimeSpan _
) As RetryPolicy
C#
public static RetryPolicy Retry (
	int retryCount,
	TimeSpan intervalBetweenRetries
)
C++
public:
static RetryPolicy^ Retry (
	int retryCount, 
	TimeSpan intervalBetweenRetries
)
J#
JScript

Parameters

retryCount

Type: System.Int32

A non-negative number indicating the number of times to retry.

intervalBetweenRetries

Type: System.TimeSpan

The time interval between retries. Use Zero to specify that the operation should be retried immediately.

Return Value

Type: Microsoft.WindowsAzure.StorageClient.RetryPolicy

The retry policy.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

See Also