SmartFoxServer Silverlight API
AutoJoin Method
NamespacesSmartFoxClientAPISmartFoxClientAutoJoin()()()
Automatically join the the default room (if existing) for the current zone.
A default room can be specified in the SmartFoxServer server-side configuration by adding the autoJoin = "true" attribute to one of the <Room>> tags in a zone.
When a room is marked as autoJoin it becomes the default room where all clients are joined when this method is called.
Declaration Syntax
C#Visual BasicVisual C++
public void AutoJoin()
Public Sub AutoJoin
public:
void AutoJoin()
Remarks

Sends:
SFSEvent..::.OnJoinRoomDelegate
SFSEvent..::.OnJoinRoomErrorDelegate

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to join the default room in the current zone.
CopyC#
smartFox.AutoJoin();
See Also

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