Get a Room object, using its id as key.
- roomId (Int32)
- the id of the room.
The Room object.
Version:
SmartFoxServer Basic / Pro
The following example shows how to retrieve a room from its id.
CopyC#
Room roomObj = smartFox.GetRoom(15); Trace.WriteLine("Room name: " + roomObj.GetName() + ", max users: " + roomObj.GetMaxUsers());