Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将 ExceptionListener 委派设置为在异步处理 QAnywhere 消息时,接收 QAExceptions。
Public Sub SetExceptionListener( ByVal address As String, ByVal listener As ExceptionListener )
public void SetExceptionListener( string address, ExceptionListener listener )
address 消息的地址。
listener 要注册的异常监听器。
ExceptionListener 委派接受 QAException 和 QAMessage 参数。可以为给定地址设置 ExceptionListener 和 MessageListener,但是必须与 Listener/Listener2 委派保持一致。也就是说,您无法为同一地址设置 ExceptionListener 和 MessageListener2,或 ExceptionListener2 和 MessageListener。
有关详细信息,请参见异步接收消息。