Control.BuildProfileTree(String, Boolean) 方法
定義
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
控制項之父代的識別項。The identifier of the control's parent.
- calcViewState
- 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.