SmartFoxServer Silverlight API
SFSEvent..::.OnRoomAddedDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnRoomAddedDelegate
Dispatched when a new room is created in the zone where the user is currently logged in.
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnRoomAddedDelegate(
	Room room
)
Public Delegate Sub OnRoomAddedDelegate ( _
	room As Room _
)
public delegate void OnRoomAddedDelegate(
	Room^ room
)
Parameters
room (Room)
the Room object representing the room that was created.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle a new room being created in the zone.
CopyC#
SFSEvent.onRoomAdded += OnRoomAdded;

NewRoomDescriptor roomObj = new NewRoomDescriptor("The Cave", 15, true);
smartFox.CreateRoom(roomObj);

public void OnRoomAdded(Room room)
{
    Debug.WriteLine("Room " + room.GetName() + " was created");
}
See Also

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