App.config - configSections - sectionGroup: allowExeDefinition = "MachineToLocalUser"

What does it mean?

allowExeDefinition="MachineToLocalUser" <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99999999999" > <section name="MyApp.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99999999999" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> </sectionGroup> 
+7
source share
1 answer

allowExeDefinition controls the location where user settings are stored.
For userSettings sections, MachineToLocalUser is used by default, and this means that the section can be saved in Machine.config, exe.config or user.config in the local user profile directory.

Other values ​​for this property are:

  • MachineOnly = ConfigurationSection can only be defined in the Machine.config file.
  • MachineToApplication = Configuration can be defined either in the Machine.config file or in the Exe.config file on the client application directory. This is the default value.
  • MachineToLocalUser = ConfigurationSection can be defined in Machine.config, in the Exe.config file in the client application in the User.config file in the roaming user directory, or in the User.config file for the local user directory.
  • MachineToRoamingUser = ConfigurationSection can be defined in the Machine.config file in the Exe.config file in the directory client application or in the User.config file in the roaming user directory.
+9
source

All Articles