AggregateException Constructor (IEnumerable(Exception))

Task Parallel System.Threading

Initializes a new instance of the AggregateException class with references to the inner exceptions that are the cause of this exception.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	innerExceptions As IEnumerable(Of Exception) _
)
C#
public AggregateException(
	IEnumerable<Exception> innerExceptions
)

Parameters

innerExceptions
Type: System.Collections.Generic..::.IEnumerable<(Of <(Exception>)>)
The exceptions that are the cause of the current exception.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThe innerExceptions argument is null.
System..::.ArgumentExceptionAn element of innerExceptions is null.

See Also