IniFile.GetKeyValue Method (IniFile.Section, String, String)

IniFileIO

IniFileGetKeyValue Method (IniFileSection, String, String)

IniFileIO Documentation
Gets the value of keyName in the specified section.

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

public static string GetKeyValue(
	IniFileSection section,
	string keyName,
	string defaultValue = ""
)
Public Shared Function GetKeyValue ( 
	section As IniFileSection,
	keyName As String,
	Optional defaultValue As String = ""
) As String
public:
static String^ GetKeyValue(
	IniFileSection section, 
	String^ keyName, 
	String^ defaultValue = L""
)
static member GetKeyValue : 
        section : IniFileSection * 
        keyName : string * 
        ?defaultValue : string 
(* Defaults:
        let _defaultValue = defaultArg defaultValue ""
*)
-> string 

Parameters

section
Type: IniFileIOIniFileSection
Section to search.
keyName
Type: SystemString
Name of the target key.
defaultValue (Optional)
Type: SystemString
The value returned in the event the key does not exist.

Return Value

Type: String
Value of the first occurance of the keyNames within section.
Remarks

In the event of multiple keyNames within section, only the value of the first occurrance is returned.
See Also

Reference