Microsoft SDK for Java

Save

This method of the IPersistStream interface saves an object to the specified stream.

Syntax

public void Save(IStream pstm, boolean fClearDirty);

Return Value

S_OK -- The object was successfully saved to the stream.

STG_E_CANTSAVE -- The object could not save itself to the stream.

STG_E_MEDIUMFULL -- The object could not be saved because there is no space left on the storage device.

Parameters

[in] pstm IStream pointer to the stream into which the object should be saved.
[in] fClearDirty Indicates whether to clear the dirty flag after the save is complete. If TRUE, the flag should be cleared. If FALSE, the flag should be left unchanged.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.