IBindCtx::ReleaseBoundObjects method (objidl.h)

Releases all pointers to all objects that were previously registered by calls to RegisterObjectBound.


HRESULT ReleaseBoundObjects();

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


You rarely call this method directly. The system's IBindCtx implementation calls this method when the pointer to the IBindCtx interface on the bind context is released (the bind context is released). If a bind context is not released, all of the registered objects remain active.

If the same object has been registered more than once, this method calls the Release method on the object the number of times it was registered.


Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h

See also