Compartilhar via


IDataObject::DUnadvise (Windows CE 5.0)

Send Feedback

This method destroys a notification connection that had been previously set up.

HRESULT DUnadvise(DWORDdwConnection);

Parameters

  • dwConnection
    [in] DWORD token that specifies the connection to remove. Use the value returned by the IDataObject::DAdvise method when the connection was originally established.

Return Values

The following table shows the return values for this method.

Value Description
S_OK The specified connection was successfully deleted.
OLE_E_NOCONNECTION The specified dwConnection parameter is not a valid connection.
OLE_E_ADVISENOTSUPPORTED 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 the IDataAdviseHolder::Advise method, you must delegate this call to IDataAdviseHolder::Unadvise to delete it.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

IDataObject::DAdvise

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.