UserControl.Trace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the TraceContext object for the current Web request.
public:
property System::Web::TraceContext ^ Trace { System::Web::TraceContext ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.TraceContext Trace { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Trace : System.Web.TraceContext
Public ReadOnly Property Trace As TraceContext
Property Value
The data from the TraceContext object for the current Web request.
- Attributes
Remarks
Tracing tracks and presents the execution details about a Web request. For trace data to be visible in a rendered page, you must enable tracing for that page.
By default, page tracing is disabled. To enable tracing for a page, use the @ Page directive as follows: <%@ Page trace="true" %>
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應