EventDescriptor(Int32, Byte, Byte, Byte, Byte, Int32, Int64) 建構函式

定義

初始化 EventDescriptor 類別的新執行個體。

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

事件識別項。

version
Byte

事件的版本。 版本表示事件定義的修訂。 您可以使用這個成員和 Id 成員來識別唯一的事件。

channel
Byte

定義事件的潛在目標。

level
Byte

指定事件中所包含的詳細層級。

opcode
Byte

寫入事件時所執行的作業。

task
Int32

識別正在寫入事件的應用程式的邏輯元件。

keywords
Int64

指定事件類別的位元遮罩。 關鍵字可以包含一或多個提供者定義的關鍵字、標準關鍵字或兩者。

備註

如需這些參數的詳細資訊,請參閱 EventDefinitionType 複雜類型的屬性。

適用於