TraceContext.TraceMode Property
Gets or sets the sorted order in which trace messages should be output to a requesting browser.
[Visual Basic] Public Property TraceMode As TraceMode [C#] public TraceMode TraceMode {get; set;} [C++] public: __property TraceMode get_TraceMode(); public: __property void set_TraceMode(TraceMode); [JScript] public function get TraceMode() : TraceMode; public function set TraceMode(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.
Remarks
Trace messages can be sorted in the order they were processed, or alphabetically by user-defined category.
Example
[Visual Basic, C#] The following example demonstrates how you can sort a page's trace statements alphabetically by categories that you have assigned to the statements.
[Visual Basic] <%@ Page Language="VB" Trace="True" TraceMode="SortByCategory" %> [C#] <%@ Page Language="C#" Trace="True" TraceMode="SortByCategory" %>
[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
TraceContext Class | TraceContext Members | System.Web Namespace | Page | @ Page