SmartFoxServer Silverlight API
GetUserList Method
NamespacesSmartFoxClientAPI.DataRoomGetUserList()()()
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 BasicVisual 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

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