Rediger

Del via


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

Definition

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)

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