SmartFoxServer Silverlight API
GetRoom Method (roomId)
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► GetRoom(Int32)
Get a Room object, using its id as key.
Declaration Syntax

C# | Visual Basic | Visual 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);
    Debug.WriteLine("Room name: " + roomObj.GetName() + ", max users: " + roomObj.GetMaxUsers());

See Also
GetRoomByName(String)
GetAllRooms()()()
GetRoomList()()()
Room

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