Click or drag to resize
ExceptionInnerException Property
Gets the Exception instance that caused the current exception.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public Exception InnerException { get; }

Return Value

Type: Exception
An instance of Exception that describes the error that caused the current exception. The InnerException property returns the same value as was passed into the constructor, or a null reference (Nothing in Visual Basic) if the inner exception value was not supplied to the constructor. This property is read-only.
See Also