This method of the IBindCtx interface calls IUnknown::AddRef on the specified object to ensure that the object remains active until the bind context is released. The method stores a pointer to the object in the bind context's internal list of pointers.
public void RegisterObjectBound(IUnknown punk);
This method supports the standard return value E_OUTOFMEMORY, as well as the following:
S_OK -- The object was successfully registered.
[in] punk | The pointer to the IUnknown interface on the object that is being registered as bound. |