MessageQueueEnumerator.Reset MessageQueueEnumerator.Reset MessageQueueEnumerator.Reset MessageQueueEnumerator.Reset Method

定義

重設資料指標,讓它指向列舉型別的開頭。Resets the cursor, so it points to the beginning of the enumeration.

public:
 virtual void Reset();
public void Reset ();
abstract member Reset : unit -> unit
override this.Reset : unit -> unit
Public Sub Reset ()

實作

備註

列舉值會順向的方向移動。An enumerator moves in a forward-only direction. 使用這個方法傳回的列舉佇列的開頭。Use this method to return to the beginning of the enumeration of queues.

Reset 將游標放在清單中的第一個佇列。Reset positions the cursor at the first queue in the list. 您不需要呼叫MoveNext之後呼叫Reset將資料指標向前移至列舉中的第一個佇列。You do not need to call MoveNext after calling Reset to move the cursor forward to the first queue in the enumeration.

適用於

另請參閱