System.Runtime.InteropServices.InvalidComObjectException Class

The exception thrown when an invalid COM object is used.

See Also: InvalidComObjectException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class InvalidComObjectException : SystemException

Remarks

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.

Requirements

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