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

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

public void AddFirst(
	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 start 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 a list.
using Facilita.Fc.Runtime;
SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099));

int id = 99;
sharedData.AddFirst("CustID", id.ToString()); // add value (as a string) to shared data server
See Also