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 » DownloadData-Schnittstelle

 

GetDownloadTables-Methode

Syntax
DownloadTableData[ ] GetDownloadTables( );
Bemerkungen

Ermittelt ein Array für alle Download-Datentabellen in dieser Synchronisation. Die in dieser Tabelle durchgeführten Vorgänge werden an die entfernte Datenbank gesendet.

Rückgabe

Ein Array mit den Daten der Downloadtabelle. Die Reihenfolge der Tabellen im Array ist die gleiche wie die Reihenfolge für den entfernten Upload.

Beispiel

Im nachfolgenden Beispiel wird mit der Methode DownloadData.GetDownloadTables ein Array von DownloadTableData-Objekten für die aktuelle Synchronisation abgerufen. Bei diesem 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];
  
    // ...
}