SmartFoxServer Silverlight API
SFSEvent..::.OnUserEnterRoomDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnUserEnterRoomDelegate
Dispatched when another user joins the current room.
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnUserEnterRoomDelegate(
	int roomId,
	User user
)
Public Delegate Sub OnUserEnterRoomDelegate ( _
	roomId As Integer, _
	user As User _
)
public delegate void OnUserEnterRoomDelegate(
	int roomId, 
	User^ user
)
Parameters
roomId (Int32)
the id of the room joined by a user (useful in case multi-room presence is allowed).
user (User)
the User object representing the user that joined the room.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to check the handle the user entering room notification.
CopyC#
SFSEvent.onUserEnterRoom += OnUserEnterRoom;

public void OnUserEnterRoom(int roomId, User user)
{
    Debug.WriteLine("User " + user.GetName() + " entered the room");
}
See Also

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