Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​AggregateException

Assembly: System.Runtime

Inheritance: object → Exception → AggregateException

Represents one or more errors that occur during application execution.

Properties

InnerExceptions
Gets a read-only collection of the <see cref="T:System.Exception" /> instances that caused the current exception.
public string
Message
Gets a message that describes the exception.
public IDictionary
Data
Gets a collection of key/value pairs that provide additional user-defined information about the exception.
public string
HelpLink
Gets or sets a link to the help file associated with this exception.
public int
HResult
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
public Exception
InnerException
Gets the <see cref="T:System.Exception" /> instance that caused the current exception.
public string
Source
Gets or sets the name of the application or the object that causes the error.
public string
StackTrace
Gets a string representation of the immediate frames on the call stack.
public MethodBase
TargetSite
Gets the method that throws the current exception.

Methods

Flatten​()
Returns A new, flattened <see cref="T:System.AggregateException" /> .
Flattens an <see cref="T:System.AggregateException" /> instances into a single, new instance.
public Exception
GetBaseException​()
Returns The <see cref="T:System.Exception" /> that is the root cause of this exception.
Returns the <see cref="T:System.Exception" /> that is the root cause of this exception. This exception is either the root exception or the first <see cref="T:System.AggregateException" /> that contains either multiple inner exceptions or no inner exceptions at all.
public void
GetObjectData​(SerializationInfo info, StreamingContext context)
info The object that holds the serialized object data.
context The contextual information about the source or destination.
Initializes a new instance of the <see cref="T:System.AggregateException" /> class with serialized data.
public void
Handle​(Func`2 predicate)
public string
ToString​()
Returns A string representation of the current exception.
Creates and returns a string representation of the current <see cref="T:System.AggregateException" /> .
public Type
GetType​()
Inherited from Exception
Returns A <see cref="T:System.Type" /> object that represents the exact runtime type of the current instance.
Gets the runtime type of the current instance.
public bool
Equals​(object obj)
Inherited from object
obj The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .