Home > Net > C # form in the program Settings. The Settings file stored in the data is stored in there?
C # form in the program Settings. The Settings file stored in the data is stored in there?
Time:09-27
Such as: Settings. The Settings file configuration data, at the time of development, set up the Settings. The Settings in the file value, could be found in the configuration file, but I will configure file deletion, program the first run was able to get to the configuration data, user can also be saved to the users. The config file, the most began to set the value of the deposit to where go to?
CodePudding user response:
Directly to the DLL's resources section
CodePudding user response:
Should delete after you compile again, wouldn't take it
CodePudding user response:
Research today afternoon, the default data is written to death in the generated code, if the change range of the customer's property, generates a configuration file, find it rather easy to use, tried it on, can be stored List Types of data, and can be read, very useful,
CodePudding user response:
You can customize a class inherits and ApplicationSettingsBase class. The effect of the Settings file is the same,
CodePudding user response:
[global: : System. The Configuration. UserScopedSettingAttribute ()]//specified application Settings or attributes for each user of the application contains different values, unable to inherit such, [global: : System. The Configuration. ApplicationScopedSettingAttribute ()]//application Settings specified attribute is applicable to all users of the application of public value, unable to inherit such, [global: : System. The Configuration. DefaultSettingValueAttribute (" AppString ")]//set the default value is