SmartFoxServer Silverlight API
activeRoomId Field
NamespacesSmartFoxClientAPISmartFoxClientactiveRoomId
The property stores the id of the last room joined by the current user.
In most multiuser applications users can join one room at a time: in this case this property represents the id of the current room.
If multi-room join is allowed, the application should track the various id(s) in an array (for example) and this property should be ignored.
Declaration Syntax
C#Visual BasicVisual C++
public int activeRoomId
Public activeRoomId As Integer
public:
int activeRoomId
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to retrieve the current room object (as an alternative to the GetActiveRoom()()() method).
CopyC#
Room room = smartFox.GetRoom(smartFox.activeRoomId);
Debug.WriteLine("Current room is: " + room.GetName());
See Also

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