AggregateException Constructor (String, Exception)

Task Parallel System.Threading

Initializes a new instance of the AggregateException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	message As String, _
	innerException As Exception _
)
C#
public AggregateException(
	string message,
	Exception innerException
)

Parameters

message
Type: System..::.String
The error message that explains the reason for the exception.
innerException
Type: System..::.Exception
The exception that is the cause of the current exception.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThe innerException argument is null.

See Also