Config Helper
Delimiter Property
Example 



KellermanSoftware.ConfigHelper Namespace > IniReaderWriter Class : Delimiter Property
The delimiter between settings and values. By default it is an equals sign
Syntax
Public Property Delimiter As String
Dim instance As IniReaderWriter
Dim value As String
 
instance.Delimiter = value
 
value = instance.Delimiter
public string Delimiter {get; set;}
public:
property String^ Delimiter {
   String^ get();
   void set (    String^ value);
}
Example
//Trial Mode
IniReaderWriter iniReaderWriter = new IniReaderWriter();
 
//License Mode
//IniReaderWriter iniReaderWriter = new IniReaderWriter("place user name here", "place license key here"); 
 
//Change the delimiter character from an equals to a caret
iniReaderWriter.Delimiter = "^";
 
string expectedValue = "This is a test";
iniReaderWriter.SaveSetting("MySection", "MySettingName", expectedValue, "MySettingsFile.ini");
 
string actualValue = iniReaderWriter.GetSetting("MySection", "MySettingName", "MySettingsFile.ini");
Console.WriteLine(actualValue);
'Trial Mode
Dim iniReaderWriter As New IniReaderWriter()
 
'License Mode
'Dim iniReaderWriter As New IniReaderWriter("place user name here", "place license key here")
 
'Change the delimiter character from an equals to a caret
iniReaderWriter.Delimiter = "^"
 
Dim expectedValue As String = "This is a test"
iniReaderWriter.SaveSetting("MySection", "MySettingName", expectedValue, "MySettingsFile.ini")
 
Dim actualValue As String = iniReaderWriter.GetSetting("MySection", "MySettingName", "MySettingsFile.ini")
Console.WriteLine(actualValue)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IniReaderWriter Class
IniReaderWriter Members