System.Threading.Tasks.UnobservedTaskExceptionEventArgs Class

Provides data for the event that is raised when a faulted System.Threading.Tasks.Task's exception goes unobserved.

See Also: UnobservedTaskExceptionEventArgs Members

Syntax

public class UnobservedTaskExceptionEventArgs : EventArgs

Remarks

The Exception property is used to examine the exception without marking it as observed, whereas the UnobservedTaskExceptionEventArgs.SetObserved method is used to mark the exception as observed. Marking the exception as observed prevents it from triggering exception escalation policy which, by default, terminates the process.

Requirements

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