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 requests that the object save itself to a specified location.

Syntax

HRESULT Save(
  IMoniker* 
pimkName,
  LPBC 
pbc,
  BOOL 
fRemember
);

Parameters

pimkName

[in] Address of the IMonikerinterface that references the location where the object should persistently store itself.

pbc

[in] Address of the IBindCtxinterface for the bind context to be used for any moniker binding during this method.

fRemember

[in] Boolean value that indicates whether pimkNameis to be used as the reference to the current persistent state after the save. If TRUE, pimkNamebecomes the reference to the current persistent state and the object should clear its dirty flag after the save. If FALSE, this save operation is a Save A Copy As ... operation. In this case, the reference to the current persistent state is unchanged and the object should not clear its dirty flag. If pimkNameis NULL, the implementation should ignore the fRememberflag.

Return Value

Returns S_OK if the object was successfully saved or E_INVALIDARG if one or more parameters are invalid.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later