PeterO.IniFile
## PeterO.IniFile
public sealed class IniFile : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
Not documented yet.
Member Summary
[AddSection(string)](#AddSection_string)
- Not documented yet.[AddSection(string, PeterO.IniMergeBehavior)](#AddSection_string_PeterO_IniMergeBehavior)
- Not documented yet.[Count](#Count)
- Gets a value not documented yet.[GetSection(string)](#GetSection_string)
- Not documented yet.[GetValue(string, string)](#GetValue_string_string)
- Not documented yet.[RemoveSection(string)](#RemoveSection_string)
- Not documented yet.[Save(string)](#Save_string)
- Not documented yet.[SetValue(string, string, string)](#SetValue_string_string_string)
- Not documented yet.[ToString()](#ToString)
- Converts this object to a text string.[WriteToStream(System.IO.StreamWriter)](#WriteToStream_System_IO_StreamWriter)
- Not documented yet.
public IniFile( string path);
Initializes a new instance of the PeterO.IniFile class.
Parameters:
- path: The parameter path is a text string.
public IniFile( string path, PeterO.IniMergeBehavior behavior);
Initializes a new instance of the PeterO.IniFile class.
Parameters:
-
path: The parameter path is a text string.
-
behavior: The parameter behavior is an IniMergeBehavior object.
Exceptions:
- System.ArgumentNullException: The parameter path is null.
public IniFile();
Initializes a new instance of the PeterO.IniFile class.
public int Count { get; }
Gets a value not documented yet.
Returns:
A value not documented yet.
public PeterO.IniSection AddSection( string sectionName);
Not documented yet.
Parameters:
- sectionName: The parameter sectionName is a text string.
Return Value:
An IniSection object.
public PeterO.IniSection AddSection( string sectionName, PeterO.IniMergeBehavior behavior);
Not documented yet.
Parameters:
-
sectionName: The parameter sectionName is a text string.
-
behavior: The parameter behavior is an IniMergeBehavior object.
Return Value:
An IniSection object.
public PeterO.IniSection GetSection( string sectionName);
Not documented yet.
Parameters:
- sectionName: The parameter sectionName is a text string.
Return Value:
An IniSection object.
public string GetValue( string sectionName, string keyName);
Not documented yet.
Parameters:
-
sectionName: The parameter sectionName is a text string.
-
keyName: The parameter keyName is a text string.
Return Value:
A text string.
Exceptions:
- System.ArgumentNullException: The parameter keyName is null.
public void RemoveSection( string sectionName);
Not documented yet.
Parameters:
- sectionName: The parameter sectionName is a text string.
public void Save( string path);
Not documented yet.
Parameters:
- path: The parameter path is a text string.
Exceptions:
- System.ArgumentNullException: The parameter path is null.
public void SetValue( string sectionName, string keyName, string value);
Not documented yet.
Parameters:
-
sectionName: The parameter sectionName is a text string.
-
keyName: The parameter keyName is a text string.
-
value: The parameter value is a text string.
Exceptions:
- System.ArgumentNullException: The parameter keyName or value is null.
public override string ToString();
Converts this object to a text string.
Return Value:
A text string.
public void WriteToStream( System.IO.StreamWriter writer);
Not documented yet.
Parameters:
- writer: The parameter writer is a StreamWriter object.
Exceptions:
- System.ArgumentNullException: The parameter writer is null.