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();
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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code