IAdviseSink2 interface (objidl.h)

The IAdviseSink2 interface is an extension of the IAdviseSink interface, adding the method OnLinkSrcChange to the contract to handle a change in the moniker of a linked object. This avoids overloading the implementation IAdviseSink::OnRename to handle the renaming of both embedded objects and linked objects. In applications where different blocks of code might execute depending on which of these two similar events has occurred, using the same method for both events complicates testing and debugging.


The IAdviseSink2 interface inherits from IAdviseSink. IAdviseSink2 also has these types of members:


The IAdviseSink2 interface has these methods.


Notifies the container that registered the advise sink that a link source has changed (either name or location), enabling the container to update the link's moniker.


Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h