SmartFoxServer Silverlight API
GetMaxSpectators Method
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetMaxSpectators()()()
Retrieve the maximum number of spectators that can join the room.
Spectators can exist in game rooms only.
Declaration Syntax

C# | Visual Basic | Visual C++

    public int GetMaxSpectators()

    Public Function GetMaxSpectators As Integer

    public:
    int GetMaxSpectators()

Return Value
The maximum number of spectators that can join the room
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    if (room.IsGame())
        Debug.WriteLine("Max spectators allowed to join the room: " + room.GetMaxSpectators());

See Also
GetMaxUsers()()()

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