Page.TraceEnabled Page.TraceEnabled Page.TraceEnabled Page.TraceEnabled Property

定義

設定數值,指出是否啟用 Page 物件的追蹤。Sets a value indicating whether tracing is enabled for the Page object.

public:
 property bool TraceEnabled { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool TraceEnabled { get; set; }
member this.TraceEnabled : bool with get, set
Public Property TraceEnabled As Boolean

屬性值

如果啟用頁面的追蹤,則為 true,否則為 falsetrue if tracing is enabled for the page; otherwise, false. 預設為 falseThe default is false.

備註

在大部分情況下,請勿在程式碼中設定這個屬性。In most circumstances, do not set this property in code. 設定Trace屬性設定為true@ Page .aspx 檔案中的指示詞。Set the Trace attribute to true in the @ Page directive in the .aspx file. 當要求網頁時,將屬性設定動態產生的類別。When the page is requested, the dynamically generated class sets the property.

適用於

另請參閱