Control.BuildProfileTree(String, Boolean) 方法

定义

收集有关服务器控件的信息并将该信息发送到 Trace 属性,在启用页的跟踪功能时将显示该属性。

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

控件的父级的标识符。

calcViewState
Boolean

指示是否计算视图状态大小的布尔值。

注解

此属性收集有关页面 UI 层次结构所需的信息,并将其传递给页面的 <跟踪> 属性。 为页面或应用程序启用跟踪时,此信息将显示在 Control Tree 跟踪输出的部分中。 页面的跟踪输出将追加到页面末尾;虽然可以从跟踪查看器 (trace.axd 文件) 查看应用程序的跟踪输出,该文件存储在应用程序的根目录中。 有关跟踪的详细信息,请参阅 ASP.NET 跟踪概述

适用于