SmartFoxServer Silverlight API
GetMaxSpectators Method
NamespacesSmartFoxClientAPI.DataRoomGetMaxSpectators()()()
Retrieve the maximum number of spectators that can join the room.
Spectators can exist in game rooms only.
Declaration Syntax
C#Visual BasicVisual 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

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