IOleAdviseHolder interface (oleidl.h)

Manages advisory connections and compound document notifications in an object server. Its methods are intended to be used to implement the advisory methods of IOleObject. IOleAdviseHolder is implemented on an advise holder object. Its methods establish and delete advisory connections from the object managed by the server to the object's container, which must contain an advise sink (support the IAdviseSink interface). The advise holder object must also keep track of which advise sinks are interested in which notifications and pass along the notifications as appropriate.

Inheritance

The IOleAdviseHolder interface inherits from the IUnknown interface. IOleAdviseHolder also has these types of members:

Methods

The IOleAdviseHolder interface has these methods.

 
IOleAdviseHolder::Advise

Establishes an advisory connection between an OLE object and the calling object's advise sink. Through that sink, the calling object can receive notification when the OLE object is renamed, saved, or closed.
IOleAdviseHolder::EnumAdvise

Creates an enumerator that can be used to enumerate the advisory connections currently established for an object.
IOleAdviseHolder::SendOnClose

Sends notification to all advisory sinks currently registered with the advise holder that the object has closed.
IOleAdviseHolder::SendOnRename

Sends notification to all advisory sinks currently registered with the advise holder that the name of object has changed.
IOleAdviseHolder::SendOnSave

Sends notification to all advisory sinks currently registered with the advise holder that the object has been saved.
IOleAdviseHolder::Unadvise

Deletes a previously established advisory connection. (IOleAdviseHolder.Unadvise)

Requirements

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

See also

CreateOleAdviseHolder

IAdviseSink

IDataAdviseHolder

IOleObject