SmartFoxServer Silverlight API
GetVariable Method (varName)
NamespacesSmartFoxClientAPI.DataRoomGetVariable(String)
Retrieve a Room Variable.
Declaration Syntax
C#Visual BasicVisual 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

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