Partager via


RetryPolicyFactory.GetDefaultSqlConnectionRetryPolicy Method

Returns the default retry policy dedicated to handling transient conditions with SQL connections.

Namespace: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration (in Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public static RetryPolicy GetDefaultSqlConnectionRetryPolicy()
'Declaration
Public Shared Function GetDefaultSqlConnectionRetryPolicy As RetryPolicy
public:
static RetryPolicy^ GetDefaultSqlConnectionRetryPolicy()

Return Value

Type: RetryPolicy
The retry policy for SQL connections with the corresponding default strategy (or the default strategy if no retry strategy definition for SQL connections was found).

See Also

RetryPolicyFactory Class

RetryPolicyFactory Members

Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace