KeyFile.hasKey

Looks whether the key file has the key key in the group group_name. Note This function does not follow the rules for GError strictly; the return value both carries meaning and signals an error. To use this function, you must pass a GError pointer in error, and check whether it is not NULL to see if an error occurred. Language bindings should use g_key_file_get_value() to test whether or not a key exists. Since 2.6

class KeyFile
int
hasKey
(
string groupName
,
string key
)

Parameters

groupName string

a group name

key string

a key name

Return Value

Type: int

TRUE if key is a part of group_name, FALSE otherwise.

Throws

GException on failure.

Meta