IDataObject::DUnadvise method

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 codeDescription
OLE_E_NOCONNECTION

The specified value for dwConnection 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 IDataAdviseHolder::Advise, you must delegate this call to IDataAdviseHolder::Unadvise to delete it.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IDataObject is defined as 0000010e-0000-0000-C000-000000000046

See also

IDataObject

 

 

Show: