TraceSection.TraceMode Свойство

Определение

Возвращает или задает порядок, в котором отображаются сведения о трассировке ASP.NET.

public:
 property System::Web::Configuration::TraceDisplayMode TraceMode { System::Web::Configuration::TraceDisplayMode get(); void set(System::Web::Configuration::TraceDisplayMode value); };
[System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)]
public System.Web.Configuration.TraceDisplayMode TraceMode { get; set; }
[<System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)>]
member this.TraceMode : System.Web.Configuration.TraceDisplayMode with get, set
Public Property TraceMode As TraceDisplayMode

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

Одно из значений TraceDisplayMode, указывающее на порядок отображения сведений о трассировке.

Атрибуты

Примеры

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


// Get the current Mode property value.
// TraceDisplayMode modeValue = traceSection.TraceMode;

// Set the Mode property to TraceDisplayMode.SortyByTime.
// traceSection.Mode = TraceDisplayMode.SortByTime;

' Get the current Mode property value.
'Dim modeValue As TraceDisplayMode = traceSection.TraceMode

' Set the Mode property to TraceDisplayMode.SortByTime.
'traceSection.Mode = TraceDisplayMode.SortByTime

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