AggregateException.Flatten Method

Flattens 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 inner exceptions from the exception tree rooted at the provided AggregateException instance.


Supported in: 5

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

Community Additions