Using ISyncComponent

Procedure

ISyncComponent also provides minimal design support in the Standard Framework. This basic support enables you to drag and drop into a form, and to modify the ConnectionString (server, port, and user name) and TargetPath (target directory for the data) properties. When developing a Visual Studio Windows Application, be sure to add the DB2 Everyplace component IBM.Data.Sync.DB2e.dll to your Toolbox.

Poznámka:
The native Sync Client libraries must already be in the user path for this process to complete successfully.
For the Standard Framework, there is an option to use a simpler API by using IBM.Data.Sync.DB2e.ISyncComponent.
ISyncComponent comp1 = new ISyncComponent();
comp1.ConnectionString = SERVER=localhost;PORT=80;UID=username;PWD=password;
comp1.TargetPath = data;
comp1.Sync();
comp1.Close();

Související koncepce

Související úlohy