SourceLevels 列舉

定義

指定以來源參數和事件型別篩選器篩選的追蹤訊息層級。Specifies the levels of trace messages filtered by the source switch and event type filter.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

public enum class SourceLevels
public enum SourceLevels
[System.Flags]
public enum SourceLevels
type SourceLevels = 
Public Enum SourceLevels
繼承
SourceLevels
屬性

欄位

ActivityTracing 65280

允許 StopStartSuspendTransferResume 事件通過。Allows the Stop, Start, Suspend, Transfer, and Resume events through.

All -1

允許所有事件通過。Allows all events through.

Critical 1

只允許 Critical 事件通過。Allows only Critical events through.

Error 3

允許 CriticalError 事件通過。Allows Critical and Error events through.

Information 15

允許 CriticalErrorWarningInformation 事件通過。Allows Critical, Error, Warning, and Information events through.

Off 0

不允許任何事件通過。Does not allow any events through.

Verbose 31

允許 CriticalErrorWarningInformationVerbose 事件通過。Allows Critical, Error, Warning, Information, and Verbose events through.

Warning 7

允許 CriticalErrorWarning 事件通過。Allows Critical, Error, and Warning events through.

備註

來源層級可識別要追蹤的 TraceEventType 事件。The source levels identify the TraceEventType events that are to be traced. SourceSwitch 類別會使用 SourceLevels 列舉來定義追蹤訊息的事件層級,以用於篩選要傳送至追蹤接聽項的訊息。The SourceSwitch class uses the SourceLevels enumeration to define the event level of the trace message to use for filtering messages to send to the trace listener.

EventTypeFilter 類別會使用 SourceLevels 列舉,來判斷追蹤接聽程式是否應該發出追蹤。The EventTypeFilter class uses the SourceLevels enumeration to determine whether a trace listener should emit a trace.

適用於