Flatten Method

Task Parallel System.Threading

Flattens an AggregateException instances into a single, new instance.

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

Syntax

Visual Basic (Declaration)
Public Function Flatten As AggregateException
C#
public AggregateException Flatten()

Return Value

A new, flattened AggregateException.

Remarks

If any inner exceptions are themselves instances of AggregateException, this method will recursively flatten all of them. The inner exceptions returned in the new AggregateException will be the union of all of the the inner exceptions from exception tree rooted at the provided AggregateException instance.

See Also