SmartFoxServer Silverlight API
AutoJoin Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► AutoJoin()()()
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 Basic | Visual 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
JoinRoom(Object, String, Boolean, Boolean, Int32)
SFSEvent..::.OnJoinRoomDelegate
SFSEvent..::.OnJoinRoomErrorDelegate

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