Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UnobservedTaskExceptionEventArgs Class

 

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

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

System.Object
  System.EventArgs
    System.Threading.Tasks.UnobservedTaskExceptionEventArgs

public class UnobservedTaskExceptionEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodUnobservedTaskExceptionEventArgs(AggregateException)

Initializes a new instance of the UnobservedTaskExceptionEventArgs class with the unobserved exception.

NameDescription
System_CAPS_pubpropertyException

The Exception that went unobserved.

System_CAPS_pubpropertyObserved

Gets whether this exception has been marked as "observed."

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSetObserved()

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

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The Exception property is used to examine the exception without marking it as observed, whereas the 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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft