asp.net.ph

TraceContext.TraceMode Property

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 );

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

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" %>
See Also

TraceContext Members   TraceMode Enumeration Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph