TraceDisplayMode 枚举

定义

指定跟踪消息的显示顺序。Specifies the order in which trace messages are displayed.

public enum class TraceDisplayMode
public enum TraceDisplayMode
type TraceDisplayMode = 
Public Enum TraceDisplayMode
继承
TraceDisplayMode

字段

SortByCategory 2

按类别的字母顺序发出跟踪消息。Emit trace messages alphabetically by category.

SortByTime 1

按其处理顺序发出跟踪消息。Emit trace messages in the order they were processed.

示例

下面的代码示例说明如何使用 TraceMode 属性。The following code example shows how to use the TraceMode property. 此代码示例是为TraceSection类提供的更大示例的一部分。This code example is part of a larger example provided for the TraceSection class.


// Get the current Mode property value.
// TraceDisplayMode modeValue = traceSection.TraceMode;

// Set the Mode property to TraceDisplayMode.SortyByTime.
// traceSection.Mode = TraceDisplayMode.SortByTime;


' Get the current Mode property value.
'Dim modeValue As TraceDisplayMode = traceSection.TraceMode

' Set the Mode property to TraceDisplayMode.SortByTime.
'traceSection.Mode = TraceDisplayMode.SortByTime

注解

此枚举定义了可以在设置TraceMode属性时使用的值。This enumeration defines the values you can use when setting the TraceMode property.

适用于

另请参阅