Initializes a new instance of the
AggregateException class with a specified error
message and 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 ( _
message As String, _
innerExceptions As IEnumerable(Of Exception) _
) |
C# |
---|
public AggregateException(
string message,
IEnumerable<Exception> innerExceptions
) |
Parameters
- message
- Type: System..::.String
The error message that explains the reason for the exception.
- 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