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.

适用于