UnhandledExceptionEventArgs 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供在任何應用程式定義域中有未處理的例外狀況時所引發之事件的資料。
public ref class UnhandledExceptionEventArgs : EventArgs
C#
public class UnhandledExceptionEventArgs : EventArgs
C#
[System.Serializable]
public class UnhandledExceptionEventArgs : EventArgs
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class UnhandledExceptionEventArgs : EventArgs
type UnhandledExceptionEventArgs = class
inherit EventArgs
[<System.Serializable>]
type UnhandledExceptionEventArgs = class
inherit EventArgs
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type UnhandledExceptionEventArgs = class
inherit EventArgs
Public Class UnhandledExceptionEventArgs
Inherits EventArgs
- 繼承
- 屬性
UnhandledExceptionEventArgs 提供例外狀況物件的存取權,以及指出 Common Language Runtime 是否終止的旗標。 UnhandledExceptionEventArgs是針對 事件傳遞至 UnhandledExceptionEventHandlerAppDomain.UnhandledException 的其中一個參數。
如需事件處理程式委派的詳細資訊,請參閱 處理和引發事件。
Unhandled |
使用例外狀況物件和 Common Language Runtime 終止 (Termination) 旗標,初始化 UnhandledExceptionEventArgs 類別的新執行個體。 |
Exception |
取得未處理的例外狀況物件。 |
Is |
取得值,這個值表示 Common Language Runtime 是否正在終止。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 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 | 2.0, 2.1 |