SmartFoxServer Silverlight API
SFSEvent..::.OnConnectionLostDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnConnectionLostDelegate
Dispatched when the connection with SmartFoxServer is closed (either from the client or from the server).
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnConnectionLostDelegate()

    Public Delegate Sub OnConnectionLostDelegate

    public delegate void OnConnectionLostDelegate()

Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle a "connection lost" event.
CopyC#

    SFSEvent.onConnectionLost += OnConnectionLost;

    public void OnConnectionLost()
    {
        Debug.WriteLine("Connection lost!");

        // TODO: disable application interface
    }

See Also
Disconnect()()()

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