SmartFoxServer Silverlight API
Logout Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► Logout()()()
Log the user out of the current zone.
After a successful logout the user is still connected to the server, but he/she has to login again into a zone, in order to be able to interact with the server.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void Logout()

    Public Sub Logout

    public:
    void Logout()

Remarks

Sends:
SFSEvent..::.OnLogoutDelegate

Since:
SmartFoxServer Pro v1.5.5

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to logout from a zone.
CopyC#

    SFSEvent.onLogout += OnLogout;

    smartFox.Logout();

    public void OnLogout()
    {
        Debug.WriteLine("Logged out successfully");
    }

See Also
Login(String, String, String)
SFSEvent..::.OnLogoutDelegate

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