Represents the exception that is thrown when there is a COM Interop error.
Object
Exception
SystemException
ExternalException
COMException
[Visual Basic] Public Class COMException Inherits ExternalException [C#] public class COMException : ExternalException [C++] public __gc class COMException : public ExternalException [JScript] public class COMException extends ExternalException
A COMException is the exception class that is thrown for all errors from COM Interop in which the HResult is not recognized.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
COMException Members | System.Runtime.InteropServices Namespace