Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User scope vs Application scope in app.config

What is the difference between the User scope and Application scope in app.config?

like image 789
OrElse Avatar asked Mar 08 '09 00:03

OrElse


People also ask

Where are user settings stored C#?

User settings are saved in a file within a subfolder of the user's local hidden application data folder.

What are application settings?

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.

How do I get to application settings?

From the Home screen, tap the Apps icon (in the QuickTap Bar) > the Apps tab (if necessary) > Settings .

Where is app config file in Visual Studio 2022?

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.


2 Answers

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.

like image 113
Mitch Wheat Avatar answered Nov 02 '22 01:11

Mitch Wheat


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

like image 22
JaredPar Avatar answered Nov 02 '22 02:11

JaredPar