Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void SaveThreaded(string, SettingsSerializer?)

Declaration

public virtual void SaveThreaded(
    string filename = null,
    SettingsSerializer? serializer = null
)

Summary

Saves the settings. Intended for frequent use at any point where it would make sense to commit settings, but would not make sense to bug the user about any failures. This method is like SettingsBase.SaveQuiet(string, SettingsSerializer?), except that the actual save occurs slightly later on a separate thread. The method returns as soon as SettingsThreadedBase.CloneForSaveThreaded() returns.

Note that this method is NOT guaranteed to save settings, but it usually will. Make sure you call SettingsBase.Save(string, SettingsSerializer?, SettingsOnFailure) when you want to guarantee a save, especially just before the program terminates.