Share via


SP.BaseCollectionEnumerator.moveNext() Method

Applies to: SharePoint Foundation 2010

In this article
Return value
Remarks
Applies To

Advances the enumerator to the next item of the collection.

var value = SP.BaseCollectionEnumerator.moveNext();

Return value

Type: Boolean

true if the enumerator was successfully advanced to the next item; false if the enumerator has passed the end of the collection.

Remarks

After an enumerator is created or after the Reset method is called, an enumerator is positioned before the first item of the collection, and the first call to this method moves the enumerator to the first item of the collection. If this method passes the end of the collection, the enumerator is positioned after the last collection in the array and this method returns false. When the enumerator is at this position, subsequent calls to this method return false until Reset is called.

Applies To

SP.BaseCollectionEnumerator Class

See Also

Reference

SP.BaseCollectionEnumerator Methods

SP.BaseCollectionEnumerator Properties

SP Namespace