Share via


CComObject::Release

Decrements the reference count on the object.

STDMETHOD_(ULONG, Release)( );

Return Value

This function returns the new decremented reference count on the object. In debug builds, the return value may be useful for diagnostics or testing. In non-debug builds, Release always returns 0.

Requirements

Header: atlcom.h

See Also

Reference

CComObject Class

CComObject::AddRef