VectorCollection.Enumerator.MoveNext 方法

定义

将枚举器推进到集合的下一个元素。Advances the enumerator to the next element in the collection.

public:
 virtual bool MoveNext();
public bool MoveNext ();
abstract member MoveNext : unit -> bool
override this.MoveNext : unit -> bool
Public Function MoveNext () As Boolean

返回

如果枚举数成功前移到了下一个元素,则为 true;否则为 falsetrue if the enumerator successfully advanced to the next element; otherwise, false.

实现

例外

创建枚举器后修改了 VectorCollectionThe VectorCollection was modified after the enumerator was created.

注解

如果枚举器已通过集合中的最后一个元素,则此方法也会返回 falseThis method also returns false if the enumerator has passed the final element in the collection.

适用于

另请参阅