Flatten Method
Collapse the table of content
Expand the table of content

AggregateException.Flatten Method ()


Flattens an AggregateException instances into a single, new instance.

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

public AggregateException Flatten()

Return Value

Type: System.AggregateException

A new, flattened AggregateException.

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft