IniFile.AddSection Method (String, String, Int32)

IniFileIO

IniFileAddSection Method (String, String, Int32)

IniFileIO Documentation
Creates a new IniFileSection with the passed in values.

Namespace:  IniFileIO
Assembly:  IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax

public bool AddSection(
	string name,
	string comments = "",
	int order = 2147483647
)
Public Function AddSection ( 
	name As String,
	Optional comments As String = "",
	Optional order As Integer = 2147483647
) As Boolean
public:
bool AddSection(
	String^ name, 
	String^ comments = L"", 
	int order = 2147483647
)
member AddSection : 
        name : string * 
        ?comments : string * 
        ?order : int 
(* Defaults:
        let _comments = defaultArg comments ""
        let _order = defaultArg order 2147483647
*)
-> bool 

Parameters

name
Type: SystemString
Name of the new section.
comments (Optional)
Type: SystemString
Comments for the new section.
order (Optional)
Type: SystemInt32
Order of the new section respective to the existing sections.

Return Value

Type: Boolean
Whether or not the resulting IniFileSection was successfully added.
See Also

Reference