SmartFoxServer Unity/.NET API
GetVariables Method
NamespacesSmartFoxClientAPI.DataRoomGetVariables()()()
Retrieve the list of all Room Variables.
Declaration Syntax
C#Visual BasicVisual C++
public Hashtable GetVariables()
Public Function GetVariables As Hashtable
public:
Hashtable^ GetVariables()
Return Value
An associative array containing Room Variables' values, where the key is the variable name
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#
Hashtable roomVars = room.GetVariables();

foreach (string v in roomVars.Keys)
    Trace.WriteLine("Name:" + v + " | Value:" + room.GetVariable(v));
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)