SharedData SetInt Method C# API
Creates or resets the integer 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.5.77
Syntax

public void SetInt(
	string key,
	int value
)

Parameters

key
Type: System String
The key against which value will be stored.
value
Type: System Int32
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 an integer value.
using Facilita.Fc.Runtime;
SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099));
sharedData.SetInt("AccountNum", 12345678);
See Also