SmartFoxServer Silverlight API
GetUserList Method
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetUserList()()()
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.
Declaration Syntax

C# | Visual Basic | Visual C++

    public Dictionary<int, User> GetUserList()

    Public Function GetUserList As Dictionary(Of Integer, User)

    public:
    Dictionary<int, User^>^ GetUserList()

Return Value
A list of User objects
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    Dictionary<int, User> users = room.GetUserList();

    foreach (User u in users.Values)
     Debug.WriteLine(u.GetName());

See Also
GetUser(Object)
User

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