Читати англійською Редагувати

Поділитися через


TraceContext.TraceMode Property

Definition

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

C#
public System.Web.TraceMode TraceMode { get; set; }

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.

Exceptions

The selected value is not one of the TraceMode enumeration values.

Examples

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.

ASP.NET (C#)

<%@ Page Language="C#" Trace="True" TraceMode="SortByCategory" %>

Remarks

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

Applies to

Продукт Версії
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also