Vb.net app.config--configSections--sectionGroup:allowExeDefinition=";MachineToLocalUser“;
这是什么意思Vb.net app.config--configSections--sectionGroup:allowExeDefinition=";MachineToLocalUser“;,vb.net,winforms,app-config,Vb.net,Winforms,App Config,这是什么意思 allowExeDefinition="MachineToLocalUser" <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99999999999" > <section name="MyApp.My.MySe
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>
allowExeDefinition=“MachineToLocalUser”
allowExeDefinition
控制存储用户设置的位置。对于userSettings节,默认值为MachineToLocalUser,这意味着该节可以存储在本地用户配置文件目录中的Machine.config、exe.config或user.config中 此属性的其他值包括:
- MachineOnly=只能在 Machine.config文件
- MachineToApplication=可以定义配置部分 在客户端的Machine.config文件或Exe.config文件中 应用程序目录。这是默认值
- MachineToLocalUser=可以在 Machine.config,位于 客户端应用程序目录,位于漫游中的User.config文件中 用户目录,或在本地用户的user.config文件中 目录
- 机器漫游用户=可以在 Machine.config文件,位于客户端应用程序的Exe.config文件中 目录,或在漫游用户目录的User.config文件中