has_key


Description:

public bool has_key (string group_name, string key) throws KeyFileError

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

Note that this function does not follow the rules for Error strictly; the return value both carries meaning and signals an error. To use this function, you must pass a Error pointer in throws, and check whether it is not null to see if an error occurred.

Language bindings should use get_value to test whether or not a key exists.

Parameters:

this

a KeyFile

group_name

a group name

key

a key name

Returns:

true if key is a part of group_name, false otherwise