SmartFoxServer Silverlight API
GetVariable Method (varName)
NamespacesSmartFoxClientAPI.DataUserGetVariable(String)
Retrieve a User 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 User Variable's value.
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#
int age = (int)user.GetVariable("age");
See Also

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