System.Web Namespace TraceContext Class
Sets or retrieves the sorted order in which trace messages should be output to a requesting browser.
[ VB ]
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 );
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.
The following example demonstrates how you can sort a page's trace statements alphabetically by categories that you have assigned to the statements.
[ VB ]
<%@ Page Language="VB" Trace="True" TraceMode="SortByCategory" %>
[ C# ]
<%@ Page Language="C#" Trace="True" TraceMode="SortByCategory" %>
TraceContext Members TraceMode Enumeration