IMAPISession::Unadvise
Office 2013 and later
Last modified: July 23, 2011
Applies to: Outlook
Cancels the sending of notifications previously set up with a call to the IMAPISession::Advise method.
HRESULT Unadvise( ULONG_PTR ulConnection );
The IMAPISession::Unadvise method cancels a registration for notification. Unadvise releases its pointer to the caller's advise sink, which it received in the Advise call used for registration.
Generally, Unadvise calls the advise sink's IUnknown::Release method during the Unadvise call. However, if another thread is in the process of calling the advise sink's IMAPIAdviseSink::OnNotify method, the Release call is delayed until the OnNotify method returns.
Show: