What is the difference between LocalUserAppDataPath and UserAppDataPath?

There System.Windows.Forms.Applicationare two properties called LocalUserAppDataPathand UserAppDataPath. On this computer (running Vista) this corresponds

  • C:\Users\UserName\AppData\Local\CompanyName\ProductName\ProductVersion and
  • C:\Users\UserName\AppData\Roaming\CompanyName\ProductName\ProductVersion

What is the difference between the two? When will you use the first and when will you use the second?

+3
source share
2 answers

If you are in the domain / Active Directory configuration, the Roaming profile (maybe) is copied to the central server when the user logs out, and from the server when the user logs in.

The local profile is always saved “locally” on the PC.

, "", . , , .

+7

- , ( ) , . , , , (.. Windows).

, , , , .

+1

Source: https://habr.com/ru/post/1721677/


All Articles