IniFileGetKeyValue Method (String, String, String) |
IniFileIO Documentation |
Gets the value of keyName in the specified sectionName.
Namespace: IniFileIO
Assembly: IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax
public string GetKeyValue( string sectionName, string keyName, string defaultValue = "" )
Public Function GetKeyValue ( sectionName As String, keyName As String, Optional defaultValue As String = "" ) As String
public: String^ GetKeyValue( String^ sectionName, String^ keyName, String^ defaultValue = L"" )
member GetKeyValue : sectionName : string * keyName : string * ?defaultValue : string (* Defaults: let _defaultValue = defaultArg defaultValue "" *) -> string
Parameters
- sectionName
- Type: SystemString
Parent 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: StringValue of the first occurance of the keyNames within sectionName.
Remarks
See Also