Share via


UnobservedTaskExceptionEventArgs.SetObserved Method

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

Marks the Exception as "observed," thus preventing it from triggering exception escalation policy which, by default, terminates the process.

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

Syntax

'Declaration
Public Sub SetObserved
public void SetObserved()

Version Information

Silverlight

Supported in: 5

Platforms

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