Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# settings file

// 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
 
PREVIOUS NEXT
Tagged: #settings #file
ADD COMMENT
Topic
Name
4+7 =