This property represents the current status of the mobile application connection, one of the ConnectionStatus class values.
public int ConnectionStatus { get; set; }
ConnectionStatus has the following possible values:
if (app.ConnectionStatus != ConnectionStatus.CONNECTED)
{
// start the connection to server
app.StartConnection(100);
}