EventDescriptor(Int32, Byte, Byte, Byte, Byte, Int32, Int64) Constructor

Definition

Initializes a new instance of the EventDescriptor class.

C#
public EventDescriptor(int id, byte version, byte channel, byte level, byte opcode, int task, long keywords);

Parameters

id
Int32

The event identifier.

version
Byte

Version of the event. The version indicates a revision to the event definition. 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.

Remarks

For details on these parameters, see the attributes of the EventDefinitionType complex type.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1