Name | Description | |
---|---|---|
IniReaderWriter Constructor | Overloaded. |
The following tables list the members exposed by IniReaderWriter.
Name | Description | |
---|---|---|
IniReaderWriter Constructor | Overloaded. |
Name | Description | |
---|---|---|
GLOBAL_SECTION_NAME | Name for the global section |
Name | Description | |
---|---|---|
CommentCharacter | The comment character. By default it is a semicolon | |
Delimiter | The delimiter between settings and values. By default it is an equals sign | |
FileEncoding | Override the file encoding. The default is Encoding.Default. See http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx | |
IsProcessEscapeCharactersEnabled | If true, escape characters will be processed. The default is false. See http://en.wikipedia.org/wiki/INI_file |
Name | Description | |
---|---|---|
DeleteSetting | Delete a setting from an INI file No COM Interop is used If the file does not exist or the value does not exist, false will be returned. | |
GetPrivateProfileInt | Managed version of GetPrivateProfileInt No COM Interop is used If the file does not exist or the value is not in the file, the defaultValue is used. See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724348%28v=vs.85%29.aspx | |
GetPrivateProfileString | Overloaded. Managed version of GetPrivateProfileString No COM Interop is used If the file does not exist or the value is not in the file, the defaultValue is used. See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724348%28v=vs.85%29.aspx | |
GetSectionNames | Get a list of the sections in an INI file. The global section will be returned as GLOBAL. See also GLOBAL_SECTION_NAME No COM Interop is used If the file does not exist, no sections will be returned. | |
GetSectionValues | Get a dictionary of the key value pairs for a section in an INI file No COM Interop is used If the file does not exist, no items will be returned. | |
GetSetting | Get the value for a setting in a section No COM Interop is used If the file does not exist or the setting does not exist, the value returned will be null. | |
SaveSetting | Save a value to an INI file No COM Interop is used If the file does not exist it will be created. If the section does not exist it will be created. If the setting already exists it will be updated. If the setting does not exist, it will be added. | |
SettingExists | Return true if a setting exists No COM Interop is used If the file does not exist or the setting does not exist, the value returned will be false. | |
WritePrivateProfileString | Managed version of WritePrivateProfileString No COM Interop is used If the file does not exist it will be created. If the section does not exist it will be created. If the setting already exists it will be updated. If the setting does not exist, it will be added. See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724348%28v=vs.85%29.aspx |