Export (0) Print
Expand All

UnhandledExceptionEventArgs.IsTerminating Property

Indicates whether the common language runtime is terminating.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

member IsTerminating : bool with get

Property Value

Type: System.Boolean
true if the runtime is terminating; otherwise, false.

Beginning with the .NET Framework version 2.0, this property returns true for most unhandled exceptions, unless an application compatibility flag is used to revert to the behavior of versions 1.0 and 1.1. The reason is that most unhandled exceptions in threads, including thread pool threads, are allowed to proceed naturally, which normally results in termination of the application. For more information, including a list of cases in which the runtime does not terminate, see Exceptions in Managed Threads.

Version Information

The following applies to the .NET Framework versions 1.0 and 1.1: 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. Finally, this property returns false for thread pool threads and managed threads created by an application, because versions 1.0 and 1.1 catch unhandled exceptions in such threads and ignore them.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft