Partager via


UnhandledExceptionEventArgs.IsTerminating Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Indicates whether the common language runtime is terminating.

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

Syntax

'Declaration
Public ReadOnly Property IsTerminating As Boolean
public bool IsTerminating { get; }

Property Value

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

Remarks

Important noteImportant Note:

Silverlight-based applications cannot use the AppDomain.UnhandledException event.

This property returns true for most unhandled exceptions. 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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.