TraceSection.Enabled Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de ASP.NET traceringsservice is ingeschakeld.

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

Waarde van eigenschap

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

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Enabled eigenschap gebruikt. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de TraceSection klasse.


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

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

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

' Set the Enabled property to false.
traceSection.Enabled = False

Van toepassing op

Zie ook