TraceSection.Enabled Propriedade

Definição

Recebe ou define um valor que indica se o serviço de rastreamento ASP.NET está ativado.

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 Propriedade

true se o traço estiver ativado; caso contrário, false. A predefinição é true.

Atributos

Exemplos

O seguinte exemplo de código mostra como usar a Enabled propriedade. Este exemplo de código faz parte de um exemplo maior fornecido para a TraceSection classe.


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

Aplica-se a

Ver também