Export (0) Print
Expand All

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

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

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IDataAdviseHolder is defined as 00000110-0000-0000-C000-000000000046

See also

IDataAdviseHolder
IDataObject::DUnadvise

 

 

Community Additions

ADD
Show:
© 2014 Microsoft