共用方式為


TraceSection.PageOutput 屬性

定義

取得或設定一個值,指示 ASP.NET 追蹤資訊是否附加到每個頁面的輸出中。

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

屬性值

true如果追蹤資訊會附加在每頁;否則,。 false 預設值為 false

屬性

範例

以下程式碼範例說明如何使用該 PageOutput 屬性。 此程式碼範例是本類別更大範例 TraceSection 的一部分。


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

適用於