SmartFoxServer Silverlight API
SFSEvent..::.OnUserLeaveRoomDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnUserLeaveRoomDelegate
Dispatched when a user leaves the current room.
This event is also dispatched when a user gets disconnected from the server.
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnUserLeaveRoomDelegate(
	int roomId,
	int userId,
	string userName
)
Public Delegate Sub OnUserLeaveRoomDelegate ( _
	roomId As Integer, _
	userId As Integer, _
	userName As String _
)
public delegate void OnUserLeaveRoomDelegate(
	int roomId, 
	int userId, 
	String^ userName
)
Parameters
roomId (Int32)
the id of the room left by a user (useful in case multi-room presence is allowed).
userId (Int32)
the id of the user that left the room (or got disconnected).
userName (String)
the name of the user.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to check the handle the user leaving room notification.
CopyC#
SFSEvent.onUserLeaveRoom += OnUserLeaveRoom;

public void OnUserLeaveRoom(int roomId, int userId, string userName)
{
    Debug.WriteLine("User " + userName + " left the room");
}
See Also

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