AggregateException Constructor (String, Exception[])

AggregateException Constructor (String, Exception[])

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:  mscorlib (in mscorlib.dll)

public AggregateException(
	string message,
	params Exception[] innerExceptions
)

Parameters

message
Type: System.String
The error message that explains the reason for the exception.
innerExceptions
Type: System.Exception []
The exceptions that are the cause of the current exception.

ExceptionCondition
ArgumentNullException

The innerExceptions argument is null.

ArgumentException

An element of innerExceptions is null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft