Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method advises the sink that an object has been saved to disk.

Syntax

void OnSave(); 

Parameters

None.

Return Value

None.

Remarks

Object handlers and link objects normally implement OnSaveto receive notifications of when an object is saved to disk, either to its original storage (through a Save operation) or to new storage (through a Save As operation).

Object Handlers and link objects register to be notified when an object is saved for the purpose of updating their caches, but then only if the advise flag passed during registration specifies ADVFCACHE_ONSAVE.

Object handlers and link objects forward these notifications to their containers.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header objidl.h, objidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also