SmartFoxServer Silverlight API
GetAllRooms Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► GetAllRooms()()()
Get the list of rooms in the current zone.
Unlike the GetRoomList()()() method, this method returns the list of Room objects already stored on the client, so no request is sent to the server.
Declaration Syntax

C# | Visual Basic | Visual C++

    public Dictionary<int, Room> GetAllRooms()

    Public Function GetAllRooms As Dictionary(Of Integer, Room)

    public:
    Dictionary<int, Room^>^ GetAllRooms()

Return Value
The list of rooms available in the current zone.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to retrieve the room list.
CopyC#

    Dictionary<int, Room> rooms = smartFox.GetAllRooms();

    foreach (Room room in rooms.Values)
    {
        Debug.WriteLine("Room: " + room.GetName());
    }

See Also
GetRoomList()()()
Room

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