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

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » .NET での同期スクリプトの作成 » .NET 用 Mobile Link サーバ API リファレンス » DownloadData インタフェース

 

GetDownloadTables メソッド

構文
DownloadTableData[ ] GetDownloadTables( );
備考

現在の同期のダウンロード・データのすべてのテーブルを含む配列を取得します。このテーブルに対して実行された操作はリモート・データベースに送信されます。

戻り値

ダウンロード・テーブル・データの配列。配列内でのテーブルの順序は、リモートのアップロード順と同じです。

次の例では、DownloadData.GetDownloadTables メソッドを使用して、現在の同期の DownloadTableData オブジェクトの配列を取得します。この例は、_cc という DBConnectionContext インスタンスがあることを前提としています。

// 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];
  
    // ...
}