Reset Method
Collapse the table of content
Expand the table of content

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
[C#]
public virtual void Reset();
[C++]
public: virtual void Reset();
[JScript]
public function Reset();

Implements

IEnumerator.Reset

Remarks

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.

Requirements

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

Show:
© 2016 Microsoft