Share via


MSMQQueue (Windows Embedded CE 6.0)

1/6/2010

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

MSMQQueue.Close

Closes this instance of the queue.

MSMQQueue.EnableNotification

Starts event notification for asynchronously reading messages in the queue.

MSMQQueue.Peek

Returns the first message in the queue, or waits for a message to arrive if the queue is empty.

MSMQQueue.PeekCurrent

Returns the current message, depending on the position of the cursor.

MSMQQueue.PeekNext

Returns the next message in the queue but does not remove it from the queue.

MSMQQueue.Receive

Retrieves the first message in the queue, removing the message from the queue.

MSMQQueue.ReceiveCurrent

Reads the message at the current cursor location.

MSMQQueue.Reset

Returns the cursor to the start of the queue.

Properties

The following table lists the properties of the MSMQQueue object.

Property Description

MSMQQueue.Access 

Access: Read only

Data type: Long

Provides the access rights of the open queue.

MSMQQueue.Handle 

Access: Read-only

Data type: Long

Provides the handle of the opened queue.

MSMQQueue.IsOpen 

Access: Read-only

Data type: Short

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

MSMQQueue.QueueInfo 

Access: Read-only

Data type: MSMQQueueInfo

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

MSMQQueue.ShareMode 

Access: Read-only

Data type: Long

Provides the share mode of the open queue.

Requirements

Header mqoai.h
Library mqoa.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

MSMQ COM Objects
MSMQQueueInfo
MSMQQueueInfo.Create
MSMQQueueInfo.Open