SmartFoxServer Silverlight API
GetRoomByName Method (roomName)
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► GetRoomByName(String)
Get a Room object, using its name as key.
Declaration Syntax

C# | Visual Basic | Visual C++

    public Room GetRoomByName(
    	string roomName
    )

    Public Function GetRoomByName ( _
    	roomName As String _
    ) As Room

    public:
    Room^ GetRoomByName(
    	String^ roomName
    )

Parameters

roomName (String)
  the name 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 name.
CopyC#

    Room roomObj = smartFox.GetRoomByName("The Entrance");
    Debug.WriteLine("Room name: " + roomObj.GetName() + ", max users: " + roomObj.GetMaxUsers());

See Also
GetRoom(Int32)
GetAllRooms()()()
GetRoomList()()()
Room

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