SmartFoxServer Silverlight API
SFSEvent..::.OnJoinRoomDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnJoinRoomDelegate
Dispatched when a room is joined successfully.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnJoinRoomDelegate(
    	Room room
    )

    Public Delegate Sub OnJoinRoomDelegate ( _
    	room As Room _
    )

    public delegate void OnJoinRoomDelegate(
    	Room^ room
    )

Parameters

room (Room)
  the Room object representing the joined room.

Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle an successful room joining.
CopyC#

    SFSEvent.onJoinRoom += OnJoinRoom;

    smartFox.JoinRoom("The Entrance");

    public void OnJoinRoom(Room room)
    {
        Debug.WriteLine("Room " + room.GetName() + " joined successfully");
    }

See Also
SFSEvent..::.OnJoinRoomErrorDelegate
Room
JoinRoom(Object, String, Boolean, Boolean, Int32)

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