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. 在 .aspx 檔案的true @ Page指示詞中, 將屬性設定為。TraceSet 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.

適用於

另請參閱