Config Helper
IsProcessEscapeCharactersEnabled Property
Example 



KellermanSoftware.ConfigHelper Namespace > IniReaderWriter Class : IsProcessEscapeCharactersEnabled Property
If true, escape characters will be processed. The default is false.
See http://en.wikipedia.org/wiki/INI_file
Syntax
Public Property IsProcessEscapeCharactersEnabled As Boolean
Dim instance As IniReaderWriter
Dim value As Boolean
 
instance.IsProcessEscapeCharactersEnabled = value
 
value = instance.IsProcessEscapeCharactersEnabled
public bool IsProcessEscapeCharactersEnabled {get; set;}
public:
property bool IsProcessEscapeCharactersEnabled {
   bool get();
   void set (    bool value);
}
Example
//Trial Mode
IniReaderWriter iniReaderWriter = new IniReaderWriter();
 
//License Mode
//IniReaderWriter iniReaderWriter = new IniReaderWriter("place user name here", "place license key here"); 
 
iniReaderWriter.IsProcessEscapeCharactersEnabled = true;
 
//Escape a value that has a tab character
string expectedValue = "\tThis 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")
 
iniReaderWriter.IsProcessEscapeCharactersEnabled = True
 
'Escape a value that has a tab character
Dim expectedValue As String = vbTab & "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