SharedData AddLast Method C# API
Adds a value to the end of the specified value list in the Shared Data Server.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.4.0.26
Syntax

public void AddLast(
	string key,
	string value
)

Parameters

key
Type: System String
The key against which the data is stored.
value
Type: System String
The value to be added at the end of the list of values for key.
Remarks

If no current list of values exists for key, then a new list is created.

Note Note
The keys are case-sensitive.

Examples

The following example demonstrates adding a value to the end of a list.
using Facilita.Fc.Runtime;
SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099));
string lastUpdate = DateTime.Now.ToShortDateString(); // string containing current date
sharedData.AddLast("lastUpdated", lastUpdate); // add value to shared data server
See Also