Поделиться через


TraceSection.PageOutput Свойство

Определение

Возвращает или задает значение, указывающее, добавляются ли данные трассировки ASP.NET к выходным данным каждой страницы.

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

Значение свойства

true Значение , если данные трассировки добавляются на каждую страницу; falseв противном случае . Значение по умолчанию — false.

Атрибуты

Примеры

В следующем примере кода показано, как использовать PageOutput свойство. Этот пример кода является частью более крупного примера, предоставленного для TraceSection класса.


// 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

Применяется к