HealthMonitoringSection.HeartbeatInterval Property

 
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 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(GetType(TimeSpanSecondsConverter))>
<TimeSpanValidatorAttribute(MinValueString := "00:00:00", MaxValueString := "24.20:31:23")>
Public Property HeartbeatInterval As TimeSpan

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.
Dim heartBeatIntervalValue As TimeSpan = healthMonitoringSection.HeartbeatInterval

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

.NET Framework
Available since 2.0
Return to top
Show: