 | ZWOptionsAddOptionBool Method |
Add a boolean option to the program.
Namespace:
OpenZWave
Assembly:
OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntaxpublic bool AddOptionBool(
string _name,
bool _default
)
Public Function AddOptionBool (
_name As String,
_default As Boolean
) As Boolean
public:
virtual bool AddOptionBool(
[InAttribute] String^ _name,
[InAttribute] bool _default
) sealed
Parameters
- _name
- Type: SystemString
the name of the option. Option names are case insensitive and must be unique. - _default
- Type: SystemBoolean
the default value for this option.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenZWave.ZWOptions.AddOptionBool(System.String,System.Boolean)"]
RemarksAdds an option to the program whose value can then be read from a file or command line.
All calls to AddOptionInt must be made before Lock.
See AlsoReference
ZWOptions.GetOptionAsBool(String, Boolean*)