MessageEnumerator.Reset Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public void 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.

.NET Framework
Available since 1.1
Return to top