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 的 SQL Anywhere 客户端 » Dbmlsync 集成组件(不建议使用) » Dbmlsync 集成组件的事件

 

BeginSynchronization 事件

在每个同步开始时,会触发 BeginSynchronization 事件。

语法
Public Event BeginSynchronization( _
  ByVal userName As String, _
  ByVal pubNames As String _
)
Member of DbmlsyncCOM.Dbmlsync
参数

userName   您正在为其进行同步的 MobiLink 用户。

pubNames   正在进行同步的发布。如果有多个发布,则为逗号分隔的列表。

注释

您可以使用此事件在同步开始时添加自定义操作。

示例

以下 Visual Basic .NET 示例在触发 BeginSynchronization 事件时输出一条消息。该消息输出用户名和发布名。

Private Sub dbmlsync1_BeginSynchronization(
 ByVal userName As String,
 ByVal pubNames As String
)
Handles dbmlsync1.BeginSynchronization

       MsgBox("Beginning synchronization for: " + userName _
     + " publication: " + pubNames)

End Sub