IDataAdviseHolder::Unadvise method (objidl.h)

Removes a connection between a data object and an advisory sink that was set up through a previous call to IDataAdviseHolder::Advise. This method is typically called in the implementation of IDataObject::DUnadvise.

Syntax

HRESULT Unadvise(
  [in] DWORD dwConnection
);

Parameters

[in] dwConnection

A token that specifies the connection to be removed. This value was returned by IDataAdviseHolder::Advise when the connection was originally established.

Return value

This method returns S_OK on success. Other possible values include the following.

Return code Description
OLE_E_NOCONNECTION
The dwConnection parameter does not specify a valid connection.

Requirements

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

See also

IDataAdviseHolder

IDataObject::DUnadvise