validate_option


Description:

[ Version ( since = "0.9.10" ) ]
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

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.