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

C# | Visual Basic | Visual C++

    public int GetSpectatorCount()

    Public Function GetSpectatorCount As Integer

    public:
    int GetSpectatorCount()

Return Value
The number of spectators in the room
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    int specsNum = room.GetSpectatorCount();
    Debug.WriteLine("There are " + specsNum + " spectators in the room");

See Also
GetUserCount()()()

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