NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Exception.GetBaseException

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;

Return Value

Returns the base exception.

Remarks

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).

See Also

Exception Class | Exception Members | System Namespace