Get the list of users currently inside the room.
As the returned list is a Dictionary with user id(s) as keys, in order to iterate it foreach loop should be used.
As the returned list is a Dictionary with user id(s) as keys, in order to iterate it foreach loop should be used.

C# | Visual Basic | Visual C++ |
public Dictionary<int, User> GetUserList()
Public Function GetUserList As Dictionary(Of Integer, User)
public: Dictionary<int, User^>^ GetUserList()

A list of User objects

Version:
SmartFoxServer Basic / Pro
SmartFoxServer Basic / Pro


Dictionary<int, User> users = room.GetUserList(); foreach (User u in users.Values) Debug.WriteLine(u.GetName());
