SmartFoxServer Silverlight API
IsConnected Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► IsConnected()()()
A boolean flag indicating if the current user is connected to the server.
Declaration Syntax

C# | Visual Basic | Visual C++

    public bool IsConnected()

    Public Function IsConnected As Boolean

    public:
    bool IsConnected()

Return Value
The connected true/false value.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to check the connection status.
CopyC#

    Debug.WriteLine("My connection status: " + (smartFox.IsConnected() ? "connected" : "not connected"));

See Also
XTMSG_TYPE_STR
SendXtMessage(String, String, ICollection<(Of <(Object>)>), String, Int32)

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