Control.BuildProfileTree(String, Boolean) Control.BuildProfileTree(String, Boolean) Control.BuildProfileTree(String, Boolean) Control.BuildProfileTree(String, Boolean) Method

定義

收集伺服器控制項的相關資訊,並在頁面啟用追蹤時將此資訊傳遞至 Trace 屬性以顯示之。Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.

protected:
 void BuildProfileTree(System::String ^ parentId, bool calcViewState);
protected void BuildProfileTree (string parentId, bool calcViewState);
member this.BuildProfileTree : string * bool -> unit
Protected Sub BuildProfileTree (parentId As String, calcViewState As Boolean)

參數

parentId
String String String String

控制項之父代的識別項。The identifier of the control's parent.

calcViewState
Boolean Boolean Boolean Boolean

布林值,指出是否計算檢視狀態大小。A Boolean that indicates whether the view-state size is calculated.

備註

這個屬性會收集頁面的 UI 階層所需的資訊,並將它傳遞至頁面 <的>追蹤屬性。This property gathers the information necessary about a page's UI hierarchy and passes it to the page's <trace> property. 當您針對頁面或應用程式啟用追蹤時,這項資訊會顯示在追蹤輸出的Control Tree區段中。When you enable tracing, either for a page or for your application, this information is displayed in the Control Tree section of the trace output. 頁面的追蹤輸出會附加至頁面的結尾;雖然應用程式的追蹤輸出可以從儲存在應用程式根目錄中的追蹤檢視器(trace.axd 檔案)中進行查看。Trace output for a page is appended to the end of the page; while trace output for an application can be viewed from the trace viewer (trace.axd file) which is stored in the application's root directory. 如需有關追蹤的詳細資訊,請參閱ASP.NET 追蹤總覽For more information about tracing, see ASP.NET Tracing Overview.

適用於