TraceContext.TraceMode Property

Gets or sets the sorted order in which trace messages should be output to a requesting browser.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
property TraceMode TraceMode {
	TraceMode get ();
	void set (TraceMode value);
}
/** @property */
public TraceMode get_TraceMode ()

/** @property */
public void set_TraceMode (TraceMode value)

public function get TraceMode () : TraceMode

public function set TraceMode (value : TraceMode)

Property Value

One of the TraceMode enumeration values. The default is the setting specified by the traceMode attribute in the trace section of a configuration file, whose default is SortByTime.

Trace messages can be sorted in the order they were processed, or alphabetically by user-defined category.

TopicLocation
Walkthrough: Using Tracing in Visual Web Developer to Help Find Web Page ErrorsBuilding ASP .NET Web Applications in Visual Studio

The following code example demonstrates how you can sort a page's trace statements alphabetically by the categories that you have assigned to the statements.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show: