Taal

HealthMonitoringSection.Enabled Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of statuscontrole is ingeschakeld.

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

Waarde van eigenschap

true als statuscontrole is ingeschakeld; anders, false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de huidige waarde van de Enabled eigenschap opgeeft en hoe u statuscontrole kunt uitschakelen door deze eigenschap in te stellen op een waarde van false. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de HealthMonitoringSection klasse.


// 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

Van toepassing op