SmartFoxServer Silverlight API
GetUserCount Method
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetUserCount()()()
Retrieve the number of users currently inside the room.
Declaration Syntax

C# | Visual Basic | Visual 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
GetSpectatorCount()()()

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