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 - M-Business Anywhere 编程 » UltraLite for M-Business Anywhere API 参考 » SyncParms 类

 

setMBAServerWithMoreParms 方法

提供一种快速方法将 MobiLink 主机和端口同步参数设置为 M-Business 客户端使用的 M-Business Anywhere 服务器同步参数。

语法
setMBAServerWithMoreParms( String host, String port, String url_suffix, String additional)
参数
  • host   M-Business Anywhere 服务器的主机或 IP 值。如果主机为空值,UltraLite 会将它设置为当前的 M-Business Anywhere 主机。

  • port   M-Business Anywhere 服务器监听的端口。如果端口为空值,UltraLite 会将它设置为当前的 M-Business Anywhere 端口值。

  • url_suffix   它与 M-Business Anywhere 的 sync.conf 文件中设置的 url_suffix 参数对应。

  • additional   此参数可能包含先前的参数未包括的附加流参数(如代理主机、代理端口或与安全相关的参数)。如果您需要指定主机、端口或 url_suffix 信息,您可以使用上一节介绍的 setMBAServer 方法。

注释

使用 M-Business Anywhere 的 MobiLink 重定向器向 MobiLink 服务器和从 MobiLink 服务器路由数据。

此方法允许用户用附加参数指定其它参数,从而扩展了 setMBAServer 提供的功能。

如果您使用的是一键式同步,您必须使用 Connection.saveSyncParms 保存同步参数。

有关配置 M-Business 服务器以通过 M-Business Anywhere 重定向器路由 HTTP 数据库通信的信息,请参见M-Business Anywhere 重定向器(不建议使用)