Share via


HealthMonitoringSection.HeartbeatInterval Propiedad

Definición

Obtiene o establece el intervalo usado por el dominio de aplicación cuando genera el evento WebHeartbeatEvent.

public:
 property TimeSpan HeartbeatInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("heartbeatInterval", DefaultValue="00:00:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="24.20:31:23", MinValueString="00:00:00")]
public TimeSpan HeartbeatInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("heartbeatInterval", DefaultValue="00:00:00")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="24.20:31:23", MinValueString="00:00:00")>]
member this.HeartbeatInterval : TimeSpan with get, set
Public Property HeartbeatInterval As TimeSpan

Valor de propiedad

TimeSpan

Intervalo usado por el dominio de aplicación cuando genera el evento WebHeartbeatEvent.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad HeartbeatInterval. Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la HealthMonitoringSection clase .


// 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");

' 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")

Comentarios

Si el TimeSpan valor es cero tics, no se genera ningún WebHeartbeatEvent evento.

Se aplica a