Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6223397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:28:56+00:00 2026-05-24T08:28:56+00:00

In Windows Phone 7 -> IsolatedStorageSettings class we have two functions Add() and Save().

  • 0

In Windows Phone 7 -> IsolatedStorageSettings class we have two functions Add() and Save(). According to me both are doing the same thing meanings saving a key value pair in Isolated Storage. My question what is the difference between these two functions.

To test this what is did was in App.xaml.cs in Application_Deactivated event and Application_Closing event I added one key value pair in IsolatedStorageSettings without calling the save function.

On Application_Launched and Application_Activated event I am retrieving same key value pair and I am getting same value for the key which I had added above.

So, without actually calling Save function of IsolatedStorageSettings I am able to retrieve the values.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:28:57+00:00Added an answer on May 24, 2026 at 8:28 am

    .Save() actually persists the isolated storage settings instance (such as ApplicationSettings) to the media (e.g. phone storage).

    This is automatically done when your application is tombestoned (_Deactivated) or closed (_Closed). That is why you get same value without even calling save.

    .Add() method just adds a new entry to your dictionary of settings. This change may be missed if your settings is not saved (usually when app is exited unexpectedly).

    From MSDN:

    “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.”

    Hope this answers your question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed two Windows Phone applications and would like to deploy them on
In Windows phone we can store and retrieve anything using IsolatedStorageSettings.ApplicationSettings.Add(foo, bar); IsolatedStorageSettings.ApplicationSettings[foo] Then
I have Visual Studio 2008. Do I develop software for Windows phone 7 with
What Windows Phone 7 demo/reference applications have you seen which really made you interested
I'm writing a Windows Phone Mango app. I have a hyperlink that contains email
Is it allowed by Windows Phone application certification rules, to only have users be
Does Windows Phone have a limit on the amount of heap memory an app
In Windows Phone (mango) I am using Microsoft.Phone.Controls.Maps. I currently have: var _City =
Some controls in Windows Phone 7 have touchable area around, if you touch not
Windows Phone 7. I have a ScrollViewer inside a StackPanel inside a PivotItem inside

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.