SmartFoxServer Unity/.NET 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();
Trace.WriteLine("There are " + usersNum + " users in the room");
See Also

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