This documentation is archived and is not being maintained.

MessageEnumerator.Reset Method

Resets the current enumerator so it points to the head of the queue.

[Visual Basic]
Public Overridable Sub Reset() Implements IEnumerator.Reset
public virtual void Reset();
public: virtual void Reset();
public function Reset();




An enumerator can only move in a forward direction. Use this method to start over at the beginning of the queue.

After calling Reset, the cursor points to the first message. You do not need to call MoveNext after calling Reset to move the cursor forward to the first message in the queue.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MessageEnumerator Class | MessageEnumerator Members | System.Messaging Namespace | MoveNext | Current