IOleAdviseHolder
The IOleAdviseHolder
interface contains methods that manage advisory connections and compound
document notifications in an object server. Its methods are intended to be used
to implement the advisory methods of IOleObject
When to Implement
It is
unlikely that you would choose to implement this interface. OLE provides an
implementation of the OLE advise holder as a convenience to programmers.Few
applications will require notification capabilities beyond those which the
default advise holder provides. In general, a single server application that
requires different notification capabilities would simply implement the
advisory functionality in its IOleObject advisory methods. It would be
necessary to implement IOleAdviseHolder only in the case where there may
be a need for a custom advise holder object, whose methods are to be used to
implement the IOleObject methods in a set of servers.
When to Use
Call the
methods of IOleAdviseHolder to implement the advisory methods of IOleObject.
Applications instantiate an OLE advise holder by calling the OLE function CreateOleAdviseHolder
Containers
and other objects that need to receive compound document notifications must
implement the IAdviseSink
Methods in VTable Order
IUnknown
Methods |
Description |
QueryInterface |
Returns
pointers to supported interfaces. |
AddRef |
Increments
reference count. |
Release |
Decrements
reference count. |
IOleAdviseHolder
Methods |
Description |
Advise |
Establishes
advisory connection with sink. |
Unadvise |
Deletes
advisory connection with sink. |
EnumAdvise |
Supplies an
IEnumSTATDATA pointer to an enumeration object that can be used to
determine current advisory connections. |
SendOnRename |
Advises
sink that name of object has changed. |
SendOnSave |
Advises
sink that object has been saved. |
SendOnClose |
Advises
sink that object has been closed. |
See Also