MessageQueueEnumerator.Reset 方法

定義

重設資料指標,讓它指向列舉型別的開頭。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.

適用於

另請參閱