TraceSection.PageOutput 属性

定义

获取或设置一个值,该值指示是否将 ASP.NET 跟踪信息追加到每页的输出中。Gets or sets a value indicating whether the ASP.NET trace information is appended to the output of each page.

public:
 property bool PageOutput { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("pageOutput", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool PageOutput { get; set; }
[<System.Configuration.ConfigurationProperty("pageOutput", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.PageOutput : bool with get, set
Public Property PageOutput As Boolean

属性值

Boolean

如果将跟踪信息追加到每页中,则为 true;否则为 falsetrue if the trace information is appended to each page; otherwise, false. 默认值为 falseThe default is false.

属性

示例

下面的代码示例说明如何使用 PageOutput 属性。The following code example shows how to use the PageOutput property. 此代码示例是为类提供的更大示例的一部分 TraceSectionThis code example is part of a larger example provided for the TraceSection class.


// Get the current PageOutput property value.
Boolean pageOutputValue = traceSection.PageOutput;

// Set the PageOutput property to true.
traceSection.PageOutput = true;


' Get the current PageOutput property value.
Dim pageOutputValue As Boolean = traceSection.PageOutput

' Set the PageOutput property to true.
traceSection.PageOutput = True

适用于