How To Add Values To The Shared Dictionary

<< Back to the .Networking page

Integer: places an integer into a shared dictionary called SD at the path /value:

this.SD["/value"] = 5;

String: places a string into a shared dictionary called SD at the path /value:

this.SD["/value"] = "hello";

Vector: creates a vector and places it into a shared dictionary called SD at the path /value:

SharedDictionary.Vector v = new SharedDictionary.Vector();
this.SD["/value"] = v;

Vector Elements: places an integer into the last element of a vector. The vector is in the shared dictionary called SD at the path /value.

this.SD["value#-0"] = element;