Returns the original exception that caused that exception and other exceptions linked to it.
[Visual Basic] Overridable Public Function GetBaseException() As Exception [C#] public virtual Exception GetBaseException(); [C++] public: virtual Exception* GetBaseException(); [JScript] public function GetBaseException() : Exception;
Returns the base exception.
The GetBaseException method returns the original exception (inner most), if any, that causes this exception and any other exceptions linked via the InnerException property. The lowest exception is returned for the specified exception.
The GetBaseException method will traverse exceptions using the innerException property (see StackTrace).