KeyFile.getValue

Returns the raw value associated with @key under @group_name. Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.

In the event the key cannot be found, %NULL is returned and @error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the event that the @group_name cannot be found, %NULL is returned and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.

class KeyFile
string
getValue
(
string groupName
,
string key
)

Parameters

groupName string

a group name

key string

a key

Return Value

Type: string

a newly allocated string or %NULL if the specified key cannot be found.

Throws

GException on failure.

Meta