IniFile.AddKey Method (String, String, String, String, Int32)

IniFileIO

IniFileAddKey Method (String, String, String, String, Int32)

IniFileIO Documentation
Creates a new IniFileKey with the passed in values and adds it to the specified sectionName.

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

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

Parameters

sectionName
Type: SystemString
Parent section.
keyName
Type: SystemString
Name of the new key.
value
Type: SystemString
Value of the new key.
comments (Optional)
Type: SystemString
Comments for the new key.
order (Optional)
Type: SystemInt32
Order of the new key respective to the existing keys in the specified sectionName.

Return Value

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

Reference