SmartFoxServer Silverlight API
GetUserCount Method
NamespacesSmartFoxClientAPI.DataRoomGetUserCount()()()
Retrieve the number of users currently inside the room.
Declaration Syntax
C#Visual BasicVisual C++
public int GetUserCount()
Public Function GetUserCount As Integer
public:
int GetUserCount()
Return Value
The number of users in the room
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#
int usersNum = room.GetUserCount();
Debug.WriteLine("There are " + usersNum + " users in the room");
See Also

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