EventSource 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供建立跨平臺事件追蹤事件的能力。
public ref class EventSource : IDisposable
C#
public class EventSource : IDisposable
type EventSource = class
interface IDisposable
Public Class EventSource
Implements IDisposable
- 繼承
-
EventSource
- 衍生
- 實作
如需此 API 的詳細資訊,請參閱 EventSource 的補充 API 備註。
Event |
建立 EventSource 類別的新執行個體。 |
Event |
建立 EventSource 類別的新執行個體,並指定當基礎 Windows 程式碼發生錯誤時是否擲回例外狀況。 |
Event |
使用指定的組態設定,建立 EventSource 類別的新執行個體。 |
Event |
初始化要與非合約事件搭配使用之 EventSource 的新執行個體,這些事件包含指定的設定和特性。 |
Event |
使用指定的名稱,建立 EventSource 類別的新執行個體。 |
Event |
使用指定的名稱和設定,建立 EventSource 類別的新執行個體。 |
Event |
使用指定的組態設定,建立 EventSource 類別的新執行個體。 |
Construction |
取得事件來源建構期間擲回的任何例外狀況。 |
Current |
取得目前執行緒的活動識別碼。 |
Guid |
事件來源的唯一識別項。 |
Name |
衍生自事件來源的類別的好記名稱。 |
Settings |
取得套用至這個事件來源的設定。 |
Event |
發生於命令來自事件接聽程式時。 |
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 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 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
此型別具備執行緒安全。