EventSourceOptions 结构

定义

指定在调用 Write<T>(String, EventSourceOptions, T) 方法时重写默认事件设置(如日志级别、关键字和操作代码)。Specifies overrides of default event settings such as the log level, keywords and operation code when the Write<T>(String, EventSourceOptions, T) method is called.

public value class EventSourceOptions
public struct EventSourceOptions
type EventSourceOptions = struct
Public Structure EventSourceOptions
继承
EventSourceOptions

注解

有关 ETW 关键字和级别的详细信息,请参阅CLR ETW 关键字和级别For more information about ETW keywords and levels, see CLR ETW Keywords and Levels

属性

ActivityOptions

为此事件源定义的活动选项。The activity options defined for this event source.

Keywords

获取或设置应用于事件的关键字。Gets or sets the keywords applied to the event. 如果未设置此属性,则事件的关键字将为 NoneIf this property is not set, the event's keywords will be None.

Level

获取或设置应用于事件的事件级别。Gets or sets the event level applied to the event.

Opcode

获取或设置用于指定事件的操作代码。Gets or sets the operation code to use for the specified event.

Tags

为此事件源定义的事件标记。The event tags defined for this event source.

适用于