System.Runtime.InteropServices.ExternalException Class

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

See Also: ExternalException Members


public class ExternalException : SystemException


To enhance interoperability between legacy systems and the common language runtime, the ExternalException.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 object.Equals(object) implementation, which supports reference equality.

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


Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,