Condividi tramite


TraceSection.PageOutput Proprietà

Definizione

Ottiene o imposta un valore che indica se le informazioni di traccia ASP.NET vengono aggiunte all'output di ogni pagina.

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

Valore della proprietà

true se le informazioni di traccia vengono aggiunte a ogni pagina; in caso contrario, false. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la PageOutput proprietà . Questo esempio di codice fa parte di un esempio più ampio fornito per la TraceSection classe .


// Get the current PageOutput property value.
Boolean pageOutputValue = traceSection.PageOutput;

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

' Get the current PageOutput property value.
Dim pageOutputValue As Boolean = traceSection.PageOutput

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

Si applica a