ArrivedError
MSMQEvent

The ArrivedError event is fired when EnableNotification has been called and an error is generated.

Syntax

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.

Remarks

An ArrivedError event can be triggered by the message's timeout timer expiring or by an error occurring while the queue is receiving the message. The message's timeout 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.


© 1997 by Microsoft Corporation. All rights reserved.