次の方法で共有


IPersistMoniker::Save (Windows Embedded CE 6.0)

1/6/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 IMoniker interface that references the location where the object should persistently store itself.
  • pbc
    [in] Address of the IBindCtx interface for the bind context to be used for any moniker binding during this method.
  • fRemember
    [in] Boolean value that indicates whether pimkName is to be 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 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 pimkName is NULL, the implementation should ignore 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

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IPersistMoniker