SmartFoxServer Silverlight API
NewRoomDescriptor Constructor (name, maxUsers, isGame, maxSpectators, variables, extension, password, exitCurrentRoom, receiveUCount)
Namespaces ► SmartFoxClientAPI.Data ► NewRoomDescriptor ► NewRoomDescriptor(String, Int32, Boolean, Int32, List<(Of <(RoomVariable>)>), NewRoomDescriptor..::.ExtensionDescriptor, String, Boolean, Boolean)
NewRoomDescriptor constructor.
Declaration Syntax

C# | Visual Basic | Visual C++

    public NewRoomDescriptor(
    	string name,
    	int maxUsers,
    	bool isGame,
    	int maxSpectators,
    	List<RoomVariable> variables,
    	NewRoomDescriptor..::.ExtensionDescriptor extension,
    	string password,
    	bool exitCurrentRoom,
    	bool receiveUCount
    )

    Public Sub New ( _
    	name As String, _
    	maxUsers As Integer, _
    	isGame As Boolean, _
    	maxSpectators As Integer, _
    	variables As List(Of RoomVariable), _
    	extension As NewRoomDescriptor..::.ExtensionDescriptor, _
    	password As String, _
    	exitCurrentRoom As Boolean, _
    	receiveUCount As Boolean _
    )

    public:
    NewRoomDescriptor(
    	String^ name,
    	int maxUsers,
    	bool isGame,
    	int maxSpectators,
    	List<RoomVariable^>^ variables,
    	NewRoomDescriptor..::.ExtensionDescriptor^ extension,
    	String^ password,
    	bool exitCurrentRoom,
    	bool receiveUCount
    )

Parameters

name (String)
  the room name

maxUsers (Int32)
  the maximum number of users that can join the room.

isGame (Boolean)
  if true, the room is a game room (optional, default value: false).

maxSpectators (Int32)
  in game rooms only, the maximum number of spectators that can join the room (optional, default value: 0).

variables (List<(Of <(RoomVariable>)>))
  a List of Room Variables, as described in the SetRoomVariables(List<(Of <(RoomVariable>)>), Int32, Boolean) method documentation (optional, default: none).

extension (NewRoomDescriptor..::.ExtensionDescriptor)
  a NewRoomDescriptor.ExtensionDescriptor, as descriped in NewRoomDescriptor..::.ExtensionDescriptor(String, String) describing which extension should be dynamically attached to the room, as described farther on (optional, default: none).

password (String)
  a password to make the room private (optional, default: none)

exitCurrentRoom (Boolean)
  if true and in case of game room, the new room is joined after creation (optional, default value: true).

receiveUCount (Boolean)
  if true, the new room will receive the SFSEvent..::.OnUserCountChangeDelegate notifications (optional, default recommended value: false).

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