EventDescriptor(Int32, Byte, Byte, Byte, Byte, Int32, Int64) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 複雜型態的屬性。