SmartFoxServer Unity/.NET API
GetAllRooms Method
NamespacesSmartFoxClientAPISmartFoxClientGetAllRooms()()()
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 BasicVisual C++
public Hashtable GetAllRooms()
Public Function GetAllRooms As Hashtable
public:
Hashtable^ 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#
Hashtable rooms = smartFox.GetAllRooms();

foreach (Room room in rooms.Values)
{
    Trace.WriteLine("Room: " + room.getName());
}
See Also

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