Share via


TraceSection.Enabled Propiedad

Definición

Obtiene o establece un valor que indica si está habilitado el servicio de seguimiento de ASP.NET.

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

Valor de propiedad

Boolean

true si está habilitado el seguimiento; en caso contrario, false. De manera predeterminada, es true.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad Enabled. Este ejemplo de código es parte de un ejemplo mayor proporcionado para la clase TraceSection.


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

Se aplica a

Consulte también