Delen via


IPersistMoniker::Save method

Tells the object to save itself to a specified location.

Syntax

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

Parameters

  • pimkName [in]
    The address of the IMoniker interface that references the location where the object stores itself persistently.

  • pbc [in]
    The address of the IBindCtx interface for the bind context to use for any moniker binding during this method.

  • fRemember [in]
    A Boolean value that indicates whether pimkName is used as the reference to the current persistent state after the save. If TRUE, pimkName becomes the reference to the current persistent state, and the object clears 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 does not clear its "dirty" flag. If pimkName is NULL, the implementation ignores the fRemember flag.

Return value

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

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Product

Internet Explorer 4.0

DLL

Urlmon.dll

See also

IPersistMoniker