Partekatu honen bidez:


TraceSection.WriteToDiagnosticsTrace Propiedad

Definición

Obtiene o establece un valor que indica si los mensajes emitidos a través del seguimiento de página se reenvían a una instancia de la Trace clase .

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

Valor de propiedad

true es si los mensajes de seguimiento se envían a la Trace clase ; de lo contrario, falsees . El valor predeterminado es false.

Atributos

Ejemplos

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


// Get the current WriteToDiagnosticsTrace property value.
Boolean writeToDiagnosticsTraceValue = traceSection.WriteToDiagnosticsTrace;

// Set the WriteToDiagnosticsTrace property to true.
traceSection.WriteToDiagnosticsTrace = true;

' Get the current WriteToDiagnosticsTrace property value.
Dim writeToDiagnosticsTraceValue As Boolean = traceSection.WriteToDiagnosticsTrace

' Set the WriteToDiagnosticsTrace property to true.
traceSection.WriteToDiagnosticsTrace = True

Se aplica a