What is the difference between the User scope and Application scope in app.config?
User settings are saved in a file within a subfolder of the user's local hidden application data folder.
Application settings enable you to store application information dynamically. Settings allow you to store information on the client computer that shouldn't be included in the application code (for example a connection string), user preferences, and other information you need at runtime.
From the Home screen, tap the Apps icon (in the QuickTap Bar) > the Apps tab (if necessary) > Settings .
In Solution Explorer, right-click the project node, and then select Add > New Item. The Add New Item dialog box appears. Expand Installed > Visual C# Items. In the middle pane, select the Application Configuration File template.
User-scope settings are used to store values specific to each individual user, whereas application-scope settings are used for all users.
Take a look at this article.
User Scoped Settings will only affect the current user and are relatively safe to set. They are stored in a user specific location so there is no real issue with writing to them.
Application Scoped Settings on the other hand are read-only and cannot be changed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With