Partager via


TraceSection.PageOutput Propriété

Définition

Obtient ou définit une valeur indiquant si les informations de trace ASP.NET sont ajoutées à la sortie de chaque page.

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

Valeur de propriété

true si les informations de trace sont ajoutées à chaque page ; sinon, false. La valeur par défaut est false.

Attributs

Exemples

L’exemple de code suivant montre comment utiliser la PageOutput propriété. Cet exemple de code fait partie d’un exemple plus grand fourni pour 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

S’applique à