This documentation is archived and is not being maintained.

ExternalException Class

The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.

For a list of all members of this type, see ExternalException Members.

            Derived classes

[Visual Basic]
Public Class ExternalException
   Inherits SystemException
public class ExternalException : SystemException
public __gc class ExternalException : public SystemException
class ExternalException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


To enhance interoperability between legacy systems and the common language runtime, the ErrorCode property stores an integer value (HRESULT) that identifies the error. User defined exceptions should never derive from ExternalException, and an ExternalException should never be thrown by user code. Use the specific exceptions that derive from ExternalException instead.

ExternalException uses the HRESULT E_FAIL which has the value 0x80004005.

ExternalException uses the default Equals implementation, which supports reference equality.

For a list of initial values for an instance of ExternalException, see the ExternalException constructors.


Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ExternalException Members | System.Runtime.InteropServices Namespace | Exception | Handling and Throwing Exceptions