Condividi tramite


IsolatedStorageSettings.Save Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Saves data written to the current IsolatedStorageSettings object.

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

Syntax

'Declaration
Public Sub Save
public void Save()

Exceptions

Exception Condition
IsolatedStorageException

The IsolatedStorageFile does not have enough available free space.

Remarks

Data written to the IsolatedStorageSettings object is saved when the application that uses the class is closed. This can occur when the user closes the Web browser, refreshes a page, or browses away from the page. If you want your application to write to isolated storage immediately, you can call the Save method in application code.

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.