Idioma

HealthMonitoringSection.Enabled Propriedade

Definição

Recebe ou define um valor que indica se a monitorização de saúde está ativada.

public:
 property bool Enabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)]
public bool Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)>]
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

Valor de Propriedade

true se a monitorização de saúde estiver ativada; caso contrário, false. A predefinição é true.

Atributos

Exemplos

O seguinte exemplo de código mostra como obter o valor atual da Enabled propriedade e como desativar a monitorização de saúde definindo esta propriedade para um valor de false. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.


// Get the current Enabled property value.
Boolean enabledValue = healthMonitoringSection.Enabled;

// Set the Enabled property to false.
healthMonitoringSection.Enabled = false;

' Get the current Enabled property value.
Dim enabledValue As Boolean = healthMonitoringSection.Enabled

' Set the Enabled property to False.
healthMonitoringSection.Enabled = False

Aplica-se a