Compartilhar via


MSMQQueue (Windows CE 5.0)

Send Feedback

The MSMQQueue object represents an open instance of the queue. The MSMQQueue object provides the methods needed to read the messages in the queue and the properties needed to manage the open queue.

For information on opening the queue, see the MSMQQueueInfo.Open method.

Methods

The following table lists the methods of the MSMQQueue object.

Method Description
Close Closes this instance of the queue.
EnableNotification Starts event notification for asynchronously reading messages in the queue.
Peek Returns the first message in the queue, or waits for a message to arrive if the queue is empty.
PeekCurrent Returns the current message, depending on the position of the cursor.
PeekNext Returns the next message in the queue but does not remove it from the queue.
Receive Retrieves the first message in the queue, removing the message from the queue.
ReceiveCurrent Reads the message at the current cursor location.
Reset Returns the cursor to the start of the queue.

Properties

The following table lists the properties of the MSMQQueue object.

Property Description
Access

Access: Read only

Data type: Long

Provides the access rights of the open queue.
Handle

Access: Read-only

Data type: Long

Provides the handle of the opened queue.
IsOpen

Access: Read-only

Data type: Short

Provides an indication of whether or not the queue is open.
QueueInfo

Access: Read-only

Data type: MSMQQueueInfo

Provides an MSMQQueueInfo object that contains the initial settings used to open the queue.
ShareMode

Access: Read-only

Data type: Long

Provides the share mode of the open queue.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mqoai.h.
Link Library: Mqoa.lib.

See Also

MSMQQueueInfo | MSMQQueueInfo.Create | MSMQQueueInfo.Open

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.