Compartir a través de


AggregateException.Flatten Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Flattens AggregateException instances into a single, new instance.

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

Syntax

'Declaration
Public Function Flatten As AggregateException
public AggregateException Flatten()

Return Value

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

Version Information

Silverlight

Supported in: 5

Platforms

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