EventDescriptor(Int32, Byte, Byte, Byte, Byte, Int32, Int64) 构造函数
定义
初始化 EventDescriptor 类的新实例。Initializes a new instance of the EventDescriptor class.
public:
EventDescriptor(int id, System::Byte version, System::Byte channel, System::Byte level, System::Byte opcode, int task, long keywords);
public EventDescriptor (int id, byte version, byte channel, byte level, byte opcode, int task, long keywords);
new System.Diagnostics.Eventing.EventDescriptor : int * byte * byte * byte * byte * int * int64 -> System.Diagnostics.Eventing.EventDescriptor
Public Sub New (id As Integer, version As Byte, channel As Byte, level As Byte, opcode As Byte, task As Integer, keywords As Long)
参数
- id
- Int32
事件标识符。The event identifier.
- version
- Byte
事件的版本。Version of the event. 版本指示对事件定义的修订。The version indicates a revision to the event definition. 可以使用此成员和 ID 成员来标识唯一事件。You can use this member and the Id member to identify a unique event.
- channel
- Byte
定义事件的潜在目标。Defines a potential target for the event.
- level
- Byte
指定事件中包括的详细信息级别。Specifies the level of detail included in the event.
- opcode
- Byte
写入事件时正在执行的操作。Operation being performed at the time the event is written.
- task
- Int32
标识正在写入事件的应用程序的逻辑组件。Identifies a logical component of the application that is writing the event.
- keywords
- Int64
指定事件类别的位掩码。Bit mask that specifies the event category. 关键字可以包含一个或多个提供程序定义的关键字和/或标准关键字。The keyword can contain one or more provider-defined keywords, standard keywords, or both.
注解
有关这些参数的详细信息,请参阅 EventDefinitionType 复杂类型的属性。For details on these parameters, see the attributes of the EventDefinitionType complex type.