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

SQL Anywhere 12.0.1 » MobiLink - 服务器管理 » MobiLink 服务器 API

 

使用 .NET 编写同步脚本

MobiLink 支持使用 Visual Studio 编程语言编写同步脚本。使用 .NET 编写 MobiLink 脚本时,可以使用任何能够创建有效的 .NET 程序集的语言。特别是,以下语言已经过测试,并且具有相关文档:

  • C#

  • Visual Basic .NET

  • C++

.NET 同步逻辑与 SQL 逻辑的功能相同:正如 MobiLink 服务器可以在 MobiLink 事件发生时访问 SQL 脚本一样,它也可以在 MobiLink 事件发生时调用 .NET 方法。.NET 方法可将一个 SQL 字符串返回到 MobiLink。

本节讲解如何设置、开发和运行 C#、Visual Basic .NET 和 C++ 的 .NET 同步逻辑。其中包括一个示例应用程序和用于 .NET 参考的 MobiLink 服务器 API。

 另请参见

设置 .NET 同步逻辑
编写 .NET 同步逻辑简介
.NET 同步技术
装载共享程序集
.NET 同步示例