SmartFoxServer Silverlight API
GetVariables Method
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetVariables()()()
Retrieve the list of all Room Variables.
Declaration Syntax

C# | Visual Basic | Visual C++

    public Dictionary<string, Object> GetVariables()

    Public Function GetVariables As Dictionary(Of String, Object)

    public:
    Dictionary<String^, Object^>^ GetVariables()

Return Value
A dictionary containing Room Variables' values, where the key is the variable name
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    Dictionary<string, object> roomVars = room.GetVariables();

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

See Also
GetVariable(String)
SetRoomVariables(List<(Of <(RoomVariable>)>), Int32, Boolean)

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)