SmartFoxServer Silverlight API
GetVariable Method (varName)
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetVariable(String)
Retrieve a Room Variable.
Declaration Syntax

C# | Visual Basic | Visual C++

    public Object GetVariable(
    	string varName
    )

    Public Function GetVariable ( _
    	varName As String _
    ) As Object

    public:
    Object^ GetVariable(
    	String^ varName
    )

Parameters

varName (String)
  the name of the variable to retrieve

Return Value
The Room Variable's value
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    string location = (string)room.GetVariable("location");

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

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