Sdílet prostřednictvím


MSMQQueue.Reset

 

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
()  

Parameters

This method has no parameters.

Return Values

This method has no return values.

Error Codes

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

Remarks

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.

Requirements

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.

See Also

MSMQQueue
MSMQQueue.PeekCurrent
MSMQQueue.ReceiveCurrent