Compartir por


TraceSection.Enabled Propiedad

Definición

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

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

true si el seguimiento está habilitado; de lo contrario, false. El valor predeterminado es true.

Atributos

Ejemplos

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


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