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

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite 用作 MobiLink 客户端 » UltraLite 同步参数和网络协议选项 » UltraLite 的同步参数

 

Upload Only 同步参数

表示在当前同步过程中不应进行任何下载,这样可以节省通信时间,尤其是在通过慢速通信链接进行通信时。

语法

根据所使用的 API 不同语法会有所变化。还可以使用 ulsync 设置此参数。

缺省值

False

允许值

布尔值

与以下参数冲突

仅下载、Ping 和恢复部分下载

注释

当设置为 true 时,客户端将等待来自 MobiLink 服务器的上载确认,得到确认之后它就会成功地终止同步会话。

另请参见
示例

ulsync 可以将此参数按如下方法设置为扩展同步参数:

ulsync -c DBF=myuldb.udb "MobiLinkUid=remoteA;ScriptVersion=2;UploadOnly=True;Stream=http"

UltraLite for C/C++ 应用程序可以按如下方法设置参数:

ul_synch_info info;
// ...
info.upload_only = ul_true;