AggregateException Constructor (String, IEnumerable(Exception))

AggregateException Constructor (String, IEnumerable(Of 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)

'Declaration
Public Sub New ( _
	message As String, _
	innerExceptions As IEnumerable(Of Exception) _
)

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.

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