📅  最后修改于: 2022-03-11 14:49:13.604000             🧑  作者: Mango
// Write Setting
// The scope of the settings file must be set to user in order for it not to be read-only
SettingsFile.Default.MySetting = "A setting";
SettingsFile.Default.Save(); // In order to save all the changes
// Read Setting
string myvalue = SettingsFile.Default.MySetting; // retrieve a setting of type string