Version

InnerException Property

Gets the System.Exception instance that caused the current exception.
Syntax
'Declaration
 
Public ReadOnly Property InnerException As System.Exception
public System.Exception InnerException {get;}

Property Value

An object that describes the error that caused the current exception. The System.Exception.InnerException property returns the same value as was passed into the System.Exception.#ctor(System.String,System.Exception) constructor, or null if the inner exception value was not supplied to the constructor. This property is read-only.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also