System.Runtime.InteropServices.InvalidComObjectException Class

The exception thrown when an invalid COM object is used.

See Also: InvalidComObjectException Members


public class InvalidComObjectException : SystemException


An InvalidComObjectException 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 information, see Type.IsCOMObject.

InvalidComObjectException uses the HRESULT COR_E_INVALIDCOMOBJECT which has the value 0x80131527.


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