IniDocument.GetKeyValue Method (String, Boolean)

TG.INI

IniDocumentGetKeyValue Method (String, Boolean)

Navigates to a section and looks for a key from the path.

Namespace:  TG.INI
Assembly:  TG.INI (in TG.INI.dll) Version: 1.2.2.0 (1.2.2.0)
Syntax
public IniKeyValue GetKeyValue(
	string path,
	bool createIfNotExists
)
Public Function GetKeyValue ( 
	path As String,
	createIfNotExists As Boolean
) As IniKeyValue
public:
IniKeyValue^ GetKeyValue(
	String^ path, 
	bool createIfNotExists
)
member GetKeyValue : 
        path : string * 
        createIfNotExists : bool -> IniKeyValue 

Parameters

path
Type: SystemString
A string containing the section name separated by a backslash followed by the key name. If key/value is within the global section, enter the key name only.
createIfNotExists
Type: SystemBoolean
If true and either the section or key does not exist, they will be automatically created.

Return Value

Type: IniKeyValue
Returns the IniKeyValue if found; otherwise null is returned.
See Also