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.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The innerExceptions argument is null. |
| ArgumentException | An element of innerExceptions is null. |
Show: