EventSourceSettings 枚举

定义

指定事件源的配置选项。Specifies configuration options for an event source.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class EventSourceSettings
[System.Flags]
public enum EventSourceSettings
type EventSourceSettings = 
Public Enum EventSourceSettings
继承
EventSourceSettings
属性

字段

Default 0

未启用任何特殊配置选项。None of the special configuration options are enabled.

EtwManifestEventFormat 4

引发事件时 ETW 侦听器应使用基于清单的格式。The ETW listener should use a manifest-based format when raising events. 设置此选项即对 ETW 侦听器发出指令,指示在引发事件时该侦听器应使用基于清单的格式。Setting this option is a directive to the ETW listener should use manifest-based format when raising events. 当使用其中一个受保护的 EventSource 构造函数定义从 EventSource 派生的类型时,这是默认选项。This is the default option when defining a type derived from EventSource using one of the protected EventSource constructors.

EtwSelfDescribingEventFormat 8

ETW 侦听器应使用自描述事件格式。The ETW listener should use self-describing event format. 当使用其中一个公共 EventSource 构造函数来创建 EventSource 的新实例时,这是默认选项。This is the default option when creating a new instance of the EventSource using one of the public EventSource constructors.

ThrowOnEventWriteErrors 1

发生错误时该事件源将引发异常。The event source throws an exception when an error occurs.

注解

只应指定 EtwManifestEventFormat 或 EtwSelfDescribingEventFormat, 但不能同时指定两者。Only EtwManifestEventFormat or EtwSelfDescribingEventFormat should be specified, but not both.

适用于