Adds a new key to the Dictionary, or modifies the value of an existing key.

Namespace:  Phidgets
Assembly:  Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34

Syntax

C#
public void add(
	string key,
	string value,
	bool persistent
)
Visual Basic (Declaration)
Public Sub add ( _
	key As String, _
	value As String, _
	persistent As Boolean _
)
Visual C++
public:
void add(
	String^ key, 
	String^ value, 
	bool persistent
)

Parameters

key
Type: System..::.String
The key can only contain numbers, letters, ‘/’, ‘.’, ‘-‘, ‘_’, and must begin with a letter, ‘_’ or ‘/’.
value
Type: System..::.String
The value can contain any characters.
persistent
Type: System..::.Boolean
The persistent value controls whether a key will stay in the dictionary after the client that created it disconnects. If persistent is false, the key is removed when the connection closes. Otherwise the key remains in the dictionary until it is explicitly removed.

Exceptions

ExceptionCondition
Phidgets..::.PhidgetExceptionIf this Dictionary was not opened, or if the server is not connected.

See Also