SmartFoxServer Unity/.NET API
GetUserList Method
NamespacesSmartFoxClientAPI.DataRoomGetUserList()()()
* Get the list of users currently inside the room.
* As the returned list is a Hashtable with user id(s) as keys, in order to iterate it foreach loop should be used. *
Declaration Syntax
C#Visual BasicVisual C++
public Hashtable GetUserList()
Public Function GetUserList As Hashtable
public:
Hashtable^ GetUserList()
Return Value
A list of User objects
Remarks
* Version:
* SmartFoxServer Basic / Pro *
Examples
*
CopyC#
* Hashtable users = room.GetUserList();
*             
* foreach (User u in users.Values)
 *  Trace.WriteLine(u.GetName());
*
*
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)