IDataObject::DUnadvise method
Applies to: desktop apps only
Destroys a notification connection that had been previously set up.
Syntax
HRESULT DUnadvise( [in] DWORD dwConnection );
Parameters
- dwConnection [in]
-
A token that specifies the connection to be removed. Use the value returned by IDataObject::DAdvise 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 specified value for dwConnection is not a valid connection. |
|
This IDataObject implementation does not support notification. |
Remarks
This methods destroys a notification created with a call to the IDataObject::DAdvise method.
If the advisory connection being deleted was initially set up by delegating the IDataObject::DAdvise call to IDataAdviseHolder::Advise, you must delegate this call to IDataAdviseHolder::Unadvise to delete it.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
IDL |
|
|
IID |
IID_IDataObject is defined as 0000010e-0000-0000-C000-000000000046 |
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012