SmartFoxServer Silverlight API
LeaveRoom Method (roomId)
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► LeaveRoom(Int32)
Disconnect the user from the given room.
This method should be used only when users are allowed to be present in more than one room at the same time (multi-room join feature).
Declaration Syntax

C# | Visual Basic | Visual C++

    public void LeaveRoom(
    	int roomId
    )

    Public Sub LeaveRoom ( _
    	roomId As Integer _
    )

    public:
    void LeaveRoom(
    	int roomId
    )

Parameters

roomId (Int32)
  the id of the room to leave.

Remarks

Sends:
SFSEvent..::.OnRoomLeftDelegate

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to make a user leave a room.
CopyC#

    smartFox.LeaveRoom(15);

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

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