Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project settings: Actual difference between Application and User scopes?

I want to know what is the actual difference between Application and User scope in Settings configuration for vs projects.

Is the only difference the fact that if I select Application, I can't use Settings.MyProperty as a setter, but I have to use Settings["MyProperty"] instead?

How would using the User scope affect the program otherwise, if the config file is located at my application root?

like image 219
bevacqua Avatar asked May 08 '11 15:05

bevacqua


1 Answers

User scope means each user gets their own copy, the settings are stored in the users profile folders and your App can Save those settings without Admin privileges.

If you change an Application setting (using Settings["MyProperty"]) and call Settings.Save() you will have to be running as Admin because the changes are saved to MyApplication.exe.config . And changes apply to all users.

like image 139
Henk Holterman Avatar answered Nov 15 '22 12:11

Henk Holterman