IPersistFile Interface

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 Load(String, UInt32) on the object must also open its disk file.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ComImportAttribute]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("0000010b-0000-0000-C000-000000000046")]
public interface IPersistFile : IPersist
Implements
IPersist

Remarks

Methods

GetClassID  
GetCurFile Retrieves the current name of the file associated with the object.
IsDirty Determines whether an object has changed since it was last saved to its current file.
Load Opens the specified file and initializes an object from the file contents.
Save Saves a copy of the object to the specified file.
SaveCompleted Notifies the object that it can write to its file.

It does this by notifying the object that it can revert from NoScribble mode (in which it must not write to its file), to Normal mode (in which it can).

The component enters NoScribble mode when it receives an Save(String, Boolean) call.

See Also