Share via


DefaultHttpErrorDetectionStrategy.IsTransient Method

Returns true if status code in HttpRequestExceptionWithStatus exception is greater than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505).

Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Usage

'Usage
Dim instance As DefaultHttpErrorDetectionStrategy
Dim ex As Exception
Dim returnValue As Boolean

returnValue = instance.IsTransient(ex)

Syntax

'Declaration
Public Function IsTransient ( _
    ex As Exception _
) As Boolean
public bool IsTransient (
    Exception ex
)
public:
virtual bool IsTransient (
    Exception^ ex
) sealed
public final boolean IsTransient (
    Exception ex
)
public final function IsTransient (
    ex : Exception
) : boolean

Parameters

  • ex
    Exception to check against.

Return Value

True if exception is transient otherwise false.

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

Target Platforms

See Also

Reference

DefaultHttpErrorDetectionStrategy Class
DefaultHttpErrorDetectionStrategy Members
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace