Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Deutsch) » MobiLink - Serveradministration » MobiLink-Server-APIs » Synchronisationsskripten in .NET erstellen » MobiLink-Server - API für .NET » DBConnectionContext-Schnittstelle

 

GetDownloadData-Methode

Syntax
DownloadData GetDownloadData();
Bemerkungen

Gibt eine DownloadData-Instanz für die aktuelle Synchronisation zurück. Verwenden Sie die DownloadData-Instanz, um den Download für direkte Zeilenbehandlung zu erstellen.

Rückgabe

Eine DownloadData-Instanz für die aktuelle Synchronisation.

Beispiel

Bei dem folgenden Beispiel wird vorausgesetzt, dass eine DBConnectionContext-Instanz namens _cc vorhanden ist.

// The method used for the handle_DownloadData event.
public void HandleDownload() { 
    // Get the DownloadData for the current synchronization.
    DownloadData my_dd = _cc.GetDownloadData();
  
    // Get an array of tables to set download operations.
    DownloadTableData[] download_tables = my_dd.GetDownloadTables();

    // Get the first table in the DownloadTableData array.
    DownloadTableData my_download_table = download_tables[0];
  
     // ...
}