Represents the exception that is thrown when an invalid COM object is used.
Object
Exception
SystemException
InvalidComObjectException
[Visual Basic] Public Class InvalidComObjectException Inherits SystemException [C#] public class InvalidComObjectException : SystemException [C++] public __gc class InvalidComObjectException : public SystemException [JScript] public class InvalidComObjectException extends SystemException
An InvalidComObjectException is the exception that is thrown when an invalid COM object is used. This happens when the __ComObject type is used directly without having a backing class factory. (For more infomation, see IsCOMObject.)
Namespace: System.Runtime.InteropServices
Assembly: mscorlib.dll
InvalidComObjectException Members | System.Runtime.InteropServices Namespace