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