EventSourceSettings 列舉

定義

指定事件來源的組態選項。

此列舉支援其成員值的位元組合。

public enum class EventSourceSettings
[System.Flags]
public enum EventSourceSettings
[<System.Flags>]
type EventSourceSettings = 
Public Enum EventSourceSettings
繼承
EventSourceSettings
屬性

欄位

Default 0

未啟用任何特殊組態選項。

EtwManifestEventFormat 4

引發事件時,ETW 接聽程式應該使用以資訊清單為主的格式。 設定這個選項可指示在引發事件時,ETW 接聽程式應該使用以資訊清單為主的格式。 使用受保護的 EventSource 建構函式之一來定義衍生自 EventSource 的類型時,這是預設選項。

EtwSelfDescribingEventFormat 8

ETW 接聽程式應該使用自我描述的事件格式。 使用公用 EventSource 建構函式之一來建立 EventSource 的新執行個體時,這是預設選項。

ThrowOnEventWriteErrors 1

發生錯誤時,這個事件來源會執回例外狀況。

備註

只應指定 EtwManifestEventFormat 或 EtwSelfDescribingEventFormat,但不應該同時指定這兩者。

適用於