IsolatedStorageSettings.Save Method

Saves data written to the current IsolatedStorageSettings object.

Namespace:  System.IO.IsolatedStorage
Assembly:  System.Windows (in System.Windows.dll)

public void Save()

ExceptionCondition
IsolatedStorageException

The IsolatedStorageFile does not have enough available free space.

Data written to the IsolatedStorageSettings object is saved when the application that uses the class is closed. If you want your application to write to isolated storage immediately, you can call the Save method in application code.

Caution noteCaution:

Windows Phone

On Windows Phone, IsolatedStorageSettings is not thread safe and throws an InvalidOperationException when the Save() method is called. However you don’t have to call the Save method on Windows Phone. The data that you store in the IsolatedStorageSettings object is saved automatically.

If the IsolatedStorageFile does not have enough available free space to save your application settings, an IsolatedStorageException will be thrown. If more space is required, use the IsolatedStorageFile.IncreaseQuotaTo method to request more storage space from the host.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft