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, _
ParamArray innerExceptions As Exception() _
) |
C# |
---|
public AggregateException(
string message,
params Exception[] innerExceptions
) |
Parameters
- message
- Type: System..::.String
The error message that explains the reason for the exception.
- innerExceptions
- Type: array<
System..::.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