IPersistFile interface (objidl.h)

Enables an object to be loaded from or saved to a disk file, rather than a storage object or stream. Because the information needed to open a file varies greatly from one application to another, the implementation of IPersistFile::Load on the object must also open its disk file.

Inheritance

The IPersistFile interface inherits from IPersist. IPersistFile also has these types of members:

Methods

The IPersistFile interface has these methods.

 
IPersistFile::GetCurFile

Retrieves the current name of the file associated with the object. If there is no current working file, this method retrieves the default save prompt for the object.
IPersistFile::IsDirty

Determines whether an object has changed since it was last saved to its current file.
IPersistFile::Load

Opens the specified file and initializes an object from the file contents.
IPersistFile::Save

Saves a copy of the object to the specified file.
IPersistFile::SaveCompleted

Notifies the object that it can write to its file.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h