English
Instant Developer Foundation Documentazione
  • Reference Librerie
  • Document Orientation
  • Sync Service
  • Inizializzazione

Cancel Reason

proprietà copia link

Scopo

Indica la ragione per cui la connessione è stata rifiutata.

Sintassi

event NPQ05940ServerApp.OnSynchronize(
  string Username      // User name communicated by the remote terminal
  string Password      // Password communicated by the remote terminal
  inout string Domain  // A string type output parameter that must be set to the value of th...
  date time LastSync   // Date and time of the last synchronization, as communicated by the ...
  inout boolean Cancel // A boolean output parameter. If set to true it stops the synchroniz...
)
{
  Cancel = true
  SyncService.cancelReason = "Connection refused because ..."
}

boolean ok = SyncService.synchronize(...)
if (!(ok))
  App.messageBox(SyncService.cancelReason)
  • Questa proprietà va impostata lato server nell'evento OnSynchronize quando si rifiuta la connessione impostando Cancel=true per spiegare il motivo del rifiuto.
  • Lato client è possibile leggerla qualora il metodo Synchronize restituisca false per sapere la ragione del fallimento.

Ultima modifica: 24/05/2024 / Validità: da 23.0.9000

Vedi anche

  • On Synchronize (evento)
  • Synchronize (funzione)

Hai trovato utile l'articolo?

Grazie per il feedback!

Ti serve altro aiuto?

Consulta il Forum