Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SendOnSave Method

IOleAdviseHolder::SendOnSave method

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

Syntax


HRESULT SendOnSave();

Parameters

This method has no parameters.

Return value

This method returns S_OK if advise sinks were sent IAdviseSink::OnSave notifications.

Remarks

SendOnSave calls IAdviseSink::OnSave to advise the calling object (client), which must have already established an advisory connection, that the object has been saved. If you are using the OLE advise holder (having obtained a pointer through a call to CreateOleAdviseHolder), you can call SendOnSave whenever you save the object the advise holder is associated with.

To take the object from the running state to the loaded state, the client calls IOleObject::Close. Within that implementation, if the user wants to save the object to persistent storage, the object calls IOleClientSite::SaveObject, followed by the call to SendOnSave.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleAdviseHolder is defined as 00000111-0000-0000-C000-000000000046

See also

IAdviseSink::OnSave
IOleAdviseHolder

 

 

Community Additions

ADD
Show:
© 2015 Microsoft