The following code illustrates how to initiate synchronization in an application written in C#.
private void Sync() { // Sync try { // setup to synchronize a publication named "high_priority" conn.SyncParms.Publications = "high_priority"; // Set the synchronization parameters conn.SyncParms.Version = "Version1"; conn.SyncParms.StreamParms = ""; conn.SyncParms.Stream = ULStreamType.TCPIP; conn.SyncParms.UserName = "51"; conn.Synchronize(); } catch (System.Exception t) { MessageBox.Show("Exception: " + t.Message); } } |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |