The ArrivedError event is fired when EnableNotification has been called and an error is generated.
object_ArrivedError(byval Queue as Object, byval ErrorCode as Long)
Syntax Element | Description |
---|---|
object | Instance of event (MSMQEvent) object used for the event handler. |
Queue | Queue (MSMQQueue) object that represents an open instance of the queue where the message arrived. |
ErrorCode | Error code returned by MQReceiveMessage. |
An ArrivedError event can be triggered by the message's time-out timer expiring or by an error occurring while the queue is receiving the message. The message's time-out timer can be used when the application only wants to wait a specific amount of time to receive its messages.
This event applies only to messages failing to arrive at the queue; it is not associated with any errors generated while the application is trying to read messages in the queue.
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.