This documentation is archived and is not being maintained.

MessageQueueEnumerator.Reset Method

Resets the cursor, so it points to the beginning of the enumeration.

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

public void Reset ()
public final void Reset ()
public final function Reset ()
Not applicable.

An enumerator moves in a forward-only direction. Use this method to return to the beginning of the enumeration of queues.

Reset positions the cursor at the first queue in the list. You do not need to call MoveNext after calling Reset to move the cursor forward to the first queue in the enumeration.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0