IniFileSaveFile Method |
IniFileIO Documentation |
Writes the current object content to FileName.
Namespace: IniFileIO
Assembly: IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax
public void SaveFile( bool preserveOrders = false, bool reloadAfterSave = true )
Public Sub SaveFile ( Optional preserveOrders As Boolean = false, Optional reloadAfterSave As Boolean = true )
public: void SaveFile( bool preserveOrders = false, bool reloadAfterSave = true )
member SaveFile : ?preserveOrders : bool * ?reloadAfterSave : bool (* Defaults: let _preserveOrders = defaultArg preserveOrders false let _reloadAfterSave = defaultArg reloadAfterSave true *) -> unit
Parameters
- preserveOrders (Optional)
- Type: SystemBoolean
Determines if the section and key order settings should be honored. On large ini files, this may incur a performance hit. - reloadAfterSave (Optional)
- Type: SystemBoolean
Reloads the ini file after the save completes. This action essentially rebuilds the section and key ordering according to any changes.
Exceptions
Exception | Condition |
---|---|
FileNotFoundException | Thrown when the FileName property is empty. |
See Also