IDataAdviseHolder::Unadvise method
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
- dwConnection [in]
-
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 |
|---|---|
|
The dwConnection parameter does not specify a valid connection. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IDataAdviseHolder is defined as 00000110-0000-0000-C000-000000000046 |
See also
Show: