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

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器管理 » MobiLink 服务器 API » 使用 .NET 编写同步脚本 » 用于 .NET 参考的 MobiLink 服务器 API » DBConnectionContext 接口

 

GetDownloadData 方法

语法
DownloadData GetDownloadData();
注释

返回当前同步的 DownloadData 实例。使用 DownloadData 实例为直接行处理创建下载。

返回值

当前同步的 DownloadData 实例。

示例

以下示例假定您拥有一个名为 _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];
  
     // ...
}