SharedData Set Method C# API
Creates or resets the value associated with the specified key in the Shared Data Server.

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

public void Set(
	string key,
	string value
)

Parameters

key
Type: System String
The key against which value will be stored.
value
Type: System String
The value to be stored.
Remarks

If no current value exists for key, then a new key/value pair is created.

Note Note
The keys are case-sensitive.

Examples

The following example demonstrates storing a value.
using Facilita.Fc.Runtime;
SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099));
sharedData.Set("CurrServer", "192.168.0.1");
See Also