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.
System.Object
System.Exception
System.SystemException
System.Runtime.InteropServices.ExternalException
Derived classes
[Visual Basic] <Serializable> Public Class ExternalException Inherits SystemException [C#] [Serializable] public class ExternalException : SystemException [C++] [Serializable] public __gc class ExternalException : public SystemException [JScript] public Serializable 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.
Remarks
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.
Requirements
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