Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定用于处理指定服务器同步消息的监听器对象。
Public Shared Sub SetServerSyncListener( ByVal messageName As String, ByVal appClassName As String, ByVal listener As ULServerSyncListener )
public static void SetServerSyncListener( string messageName, string appClassName, ULServerSyncListener listener )
messageName 消息的名称。
appClassName 应用程序的唯一类名。这是用来标识此应用程序的唯一标识符。
listener ULServerSyncListener 对象。使用空值(Visual Basic 中是 Nothing)删除以前的监听器。
ULException 类 发生 SQL 错误。
参数 appClassName 是用于标识应用程序的唯一标识符。应用程序一次只能使用一个 appClassName。因为监听器是用特定的 appClassName 注册的,而使用其它 appClassName 调用 SetServerSyncListener 或 SetActiveSyncListener 将会失败。
要删除特定消息的监听器,请使用空值引用(在 Visual Basic 中为 Nothing)作为 listener 参数调用 SetServerSyncListener。
要删除所有监听器,请使用空值引用(在 Visual Basic 中为 Nothing)作为所有参数调用 SetServerSyncListener。
应用程序在退出前应删除所有监听器。