SessionStateSection.SqlConnectionRetryInterval Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the time interval that should elapse before ASP.NET reconnects to the database.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("sqlConnectionRetryInterval", 
	DefaultValue = "00:00:00")]
[TypeConverterAttribute(typeof(TimeSpanSecondsOrInfiniteConverter))]
public TimeSpan SqlConnectionRetryInterval { get; set; }

Property Value

Type: System.TimeSpan

The time interval that should elapse before ASP.NET reconnects to the database.

The SqlConnectionRetryInterval specifies the time interval in seconds before reconnecting to the database when a connection error has occurred.

.NET Framework
Available since 4.0
Return to top
Show: