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

SAP Sybase SQL Anywhere 16.0 (中文) » MobiLink - 服务器管理 » MobiLink 服务器 API » 直接行处理

 

直接下载

要处理直接下载:

  1. 为 handle_DownloadData 连接事件注册一个 Java 或 .NET 方法。 请参见handle_DownloadData 连接事件

  2. 为 handle_DownloadData 同步事件编写一个方法。在此事件中,您使用 DBConnectionContext 的实例来获取当前同步的 DownloadData 实例。 请参见:

可以在 handle_DownloadData 同步事件中创建整个直接下载。还可以使用其它同步事件来设置直接下载操作。不过,必须创建一个 handle_DownloadData 脚本,即使其方法不执行任何操作。如果在除 handle_DownloadData 之外的事件中处理直接下载,该事件必须在 begin_synchronization 和 end_download 之间。

有关事件顺序的信息,请参见完整的 MobiLink 事件模型

 用于直接下载的类
 示例