System.UnhandledExceptionEventArgs Class

Assembly: Mscorlib.dll
Namespace: System
Summary
Provides data for the event that is raised when there is an exception that is not handled by the application domain.
C# Syntax:
[Serializable]
public class UnhandledExceptionEventArgs : EventArgs
Remarks
UnhandledExceptionEventArgs provides access to the exception object and a flag indicating whether the common language runtime is terminating. The UnhandledExceptionEventArgs is one of the parameters passed into UnhandledExceptionEventHandler.

For more information about event handler delegates, see the conceptual topic at MSDN: eventsdelegates.

See also:
System Namespace | UnhandledExceptionEventHandler | MSDN: eventsdelegates

System.UnhandledExceptionEventArgs Member List:

Public Constructors
ctor #1 Initializes a new instance of the UnhandledExceptionEventArgs class with the exception object and a common language runtime termination flag.
Public Properties
ExceptionObject Read-only

Gets the unhandled exception object.
IsTerminating Read-only

Indicates whether the common language runtime is terminating.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.UnhandledExceptionEventArgs Member Details

ctor #1
Summary
Initializes a new instance of the UnhandledExceptionEventArgs class with the exception object and a common language runtime termination flag.
C# Syntax:
public UnhandledExceptionEventArgs(
   object exception,
   bool isTerminating
);
Parameters:

exception

The exception that is not handled.

isTerminating

true if the runtime is terminating; otherwise, false.

Return to top


Property: ExceptionObject (read-only)
Summary
Gets the unhandled exception object.
C# Syntax:
public object ExceptionObject {get;}

Return to top


Property: IsTerminating (read-only)
Summary
Indicates whether the common language runtime is terminating.
C# Syntax:
public bool IsTerminating {get;}
Remarks


Note This property returns true when an exception is received in, but not handled by, an application's main thread. This property also returns true if an unmanaged thread is executing managed code and receives an unhandled exception. UnhandledExceptionEventArgs.IsTerminating returns false for managed threads created by an application.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~UnhandledExceptionEventArgs();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.