このトピックには、ISync.NET API を使用する方法についてクイック・リファレンスとなる例が含まれています。
// Synchronization properties private Hashtable userProps = new Hashtable(); // Get an instance DB2eISyncProvider ISyncProvider provider = DB2eISyncProvider.GetInstance(); // Set up properties userProps.Add("isync.user", username); userProps.Add("isync.password", password); // Get an instance of synchronization service from the provider ISyncService service = provider.CreateSyncService(http://localhost:80, userProps); // Get an instance of the configuration store ISyncConfigStore config = service.GetConfigStore(data); // Get an instance of the sync driver to perform synchronization ISyncDriver syncer = config.GetSyncDriver(); // Perform synchronization syncer.Sync(); // Close objects syncer.Close(); config.Close(); service.Close();
関連した概念
関連したタスク