SmartFoxServer Silverlight API
SFSEvent..::.OnConnectionLostDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnConnectionLostDelegate
Dispatched when the connection with SmartFoxServer is closed (either from the client or from the server).
Declaration Syntax
C#Visual BasicVisual 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

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