This documentation is archived and is not being maintained.

HealthMonitoringSection.HeartbeatInterval Property

Gets or sets the interval used by the application domain when it raises the WebHeartbeatEvent event.

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

[ConfigurationPropertyAttribute("heartbeatInterval", DefaultValue = "00:00:00")]
[TypeConverterAttribute(typeof(TimeSpanSecondsConverter))]
[TimeSpanValidatorAttribute(MinValueString = "00:00:00", MaxValueString = "24.20:31:23")]
public TimeSpan HeartbeatInterval { get; set; }

Property Value

Type: System.TimeSpan
The interval used by the application domain when it raises the WebHeartbeatEvent event.

If the TimeSpan value is zero ticks, no WebHeartbeatEvent event is raised.

The following code example shows how to use the HeartBeatInterval property. This code example is part of a larger example provided for the HealthMonitoringSection class.

// Get the current HeartBeatInterval property value.
TimeSpan heartBeatIntervalValue = healthMonitoringSection.HeartbeatInterval;

// Set the HeartBeatInterval property to 
// TimeSpan.Parse("00:10:00").
healthMonitoringSection.HeartbeatInterval = TimeSpan.Parse("00:10:00");

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: