When overridden in a derived class, returns the
Exception that is the root cause of one or more subsequent exceptions.
Syntax
Visual Basic (Declaration) |
|
Public Overridable Function GetBaseException() As Exception |
C# |
|
public virtual Exception GetBaseException() |
Return Value
The first exception thrown in a chain of exceptions. If the
InnerException property of the current exception is a null reference (Nothing in Visual Basic), this property returns the current exception.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also