validate_option


Description:

public static bool validate_option (string name, string value)

Checks whether name is a valid bond option and value is a valid value for the name.

If value is null, the function only validates the option name.

Parameters:

name

the name of the option to validate value (allow-none): the value of the option to validate.

Returns:

true, if the value is valid for the given name. If the name is not a valid option, false will be returned.




2022 vala-language.org