Using the ISync.NET API

You can find the API specification for ISync.NET in \DB2Everyplace\Clients\clientapisample\NMP\ISync.NET.chm

Prerequisite

Software Requirements

Although the ISync.NET provider is platform and language independent, it still depends on the underlying native Sync Client libraries. Both the provider and the Sync Client libraries must be included in the user path at application runtime. During the installation of DB2 Everyplace the user paths should be updated.

For information on the client libraries, see Win32 Ŭ¶óÀÌ¾ðÆ®¿¡¼­ ÆÄÀÏ ¼³Ä¡.

Procedure

To use Isync.NET in your applications, the following steps must be performed for all Visual Studio Frameworks and application types.

  1. In Microsoft Visual Studio .NET, create a new project in the language of your choice.
  2. In your application, import the DB2 Everyplace namespaces. The following is an example for the Standard Framework:
    [Visual Basic]
         Imports IBM.Data.Sync
         Imports IBM.Data.Sync.DB2e
         [C#]
         using IBM.Data.Sync;
         using IBM.Data.Sync.DB2e;
    

    For more information, you can view the sample synchronization application located in \DB2Everyplace\Clients\clientapisample\NMP

  3. Add a reference:
    1. In Visual Studio, right click on the project name and select Add Reference.
    2. Under the Projects tab, browse for the location of IBM.Data.Sync.DB2e.dll.
    3. On command line, type: csc /t:exe /r:IBM.Data.Sync.DB2e.dll ISyncSample.cs.

Related concepts

Related tasks