SmartFoxServer Unity/.NET API
GetRoom Method (roomId)
NamespacesSmartFoxClientAPISmartFoxClientGetRoom(Int32)
Get a Room object, using its id as key.
Declaration Syntax
C#Visual BasicVisual C++
public Room GetRoom(
	int roomId
)
Public Function GetRoom ( _
	roomId As Integer _
) As Room
public:
Room^ GetRoom(
	int roomId
)
Parameters
roomId (Int32)
the id of the room.
Return Value
The Room object.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
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());
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)