Deletes a previously established advisory connection.
HRESULT Unadvise(
DWORD dwConnection |
//Token |
); |
Parameter
Return Values
This method supports the standard return value E_FAIL, as well as the following:
Remarks
Normally, containers call IOleObject::Unadvise at shutdown or when an object is deleted. In certain cases, containers can call this method on objects that are running but not currently visible as a way of reducing the overhead of maintaining multiple advisory connections. The easiest way to implement this method is to delegate the call to IOleAdviseHolder::Unadvise.
See Also
IOleObject::Advise, IOleObject::EnumAdvise, IOleAdviseHolder::Unadvise