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
| Exception | Condition |
|---|
| System..::.ArgumentNullException | The innerExceptions argument
is null. |
| System..::.ArgumentException | An element of innerExceptions is
null. |
See Also