IOleAdviseHolder::SendOnSave  Y.U6EP

Sends IAdviseSink::OnSaveUEGG9W notifications to all advisory sinks currently registered with the advise holder.

HRESULT SendOnSave();

Return Value

S_OK

Advise sinks were sent IAdviseSink::OnSaveUEGG9W notifications.

 

Remarks

IOleAdviseHolder::SendOnSave calls IAdviseSink::OnSaveUEGG9W 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 CreateOleAdviseHolder21F74AP), you can call IOleAdviseHolder::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::CloseAY9NYV. Within that implementation, if the user wants to save the object to persistent storage, the object calls IOleClientSite::SaveObjectJSS2IT, followed by the call to IOleAdviseHolder::SendOnSave.

See Also

IAdviseSink::OnSave