SmartFoxServer Silverlight API
activeRoomId Field
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► activeRoomId
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 Basic | Visual 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
GetActiveRoom()()()

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