KeyFile.hasKey

Looks whether the key file has the key key in the group group_name.

Note that 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 KeyFile.getValue to test whether or not a key exists.

class KeyFile
bool
hasKey
(
string groupName
,
string key
)

Parameters

groupName string

a group name

key string

a key name

Return Value

Type: bool

TRUE if key is a part of group_name, FALSE otherwise

Throws

GException on failure.

Meta