Freigeben über


COM constants in managed code

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Managed Package Framework (MPF) makes some standard COM constants available to managed code. These constants are listed below for your reference.

Boolean HRESULT values

S_FALSE

S_OK

HRESULT values

E_ABORT

E_ACCESSDENIED

E_FAIL

E_HANDLE

E_INVALIDARG

E_NOINTERFACE

E_NOTIMPL

E_OUTOFMEMORY

E_PENDING

E_POINTER

E_UNEXPECTED

UNDO_E_CLIENTABORT

OLE errors

OLE_E_ADVF

OLE_E_ADVISENOTSUPPORTED

OLE_E_BLANK

OLE_E_CANT_BINDTOSOURCE

OLE_E_CANT_GETMONIKER

OLE_E_CANTCONVERT

OLE_E_CLASSDIFF

OLE_E_ENUM_NOMORE

OLE_E_INVALIDHWND

OLE_E_INVALIDRECT

OLE_E_NOCACHE

OLE_E_NOCONNECTION

OLE_E_NOSTORAGE

OLE_E_NOT_INPLACEACTIVE

OLE_E_NOTRUNNING

OLE_E_OLEVERB

OLE_E_PROMPTSAVECANCELLED

OLE_E_STATIC

OLE_E_WRONGCOMPOBJ

OLE dispatch errors

DISP_E_ARRAYISLOCKED

DISP_E_BADCALLEE

DISP_E_BADINDEX

DISP_E_BADPARAMCOUNT

DISP_E_BADVARTYPE

DISP_E_BUFFERTOOSMALL

DISP_E_DIVBYZERO

DISP_E_EXCEPTION

DISP_E_MEMBERNOTFOUND

DISP_E_NONAMEDARGS

DISP_E_NOTACOLLECTION

DISP_E_OVERFLOW

DISP_E_PARAMNOTFOUND

DISP_E_PARAMNOTOPTIONAL

DISP_E_TYPEMISMATCH

DISP_E_UNKNOWNINTERFACE

DISP_E_UNKNOWNLCID

DISP_E_UNKNOWNNAME

See also