MSMQQueue.Reset

 

Updated: July 19, 2016

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The Reset method of the MSMQQueue object returns the cursor to the start of the queue.

Sub Reset()  

This method has no parameters.

This method has no return values.

For information on return codes, see Message Queuing Error and Information Codes.

When navigating the queue using the cursor, the Reset method moves the cursor to the front of the queue. To move the cursor from the front of the queue to the first message in the queue, call MSMQQueue.PeekCurrent or MSMQQueue.ReceiveCurrent.

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

MSMQQueue
MSMQQueue.PeekCurrent
MSMQQueue.ReceiveCurrent

Community Additions

ADD
Show: