SmartFoxServer Silverlight API
GetVariable Method (varName)
Namespaces ► SmartFoxClientAPI.Data ► User ► GetVariable(String)
Retrieve a User 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 User Variable's value.
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    int age = (int)user.GetVariable("age");

See Also
GetVariables()()()
SetUserVariables(Dictionary<(Of <(String, Object>)>), Int32)

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