SP.ArrayListEnumerator.moveNext() Method

Applies to: SharePoint Foundation 2010

In this article
Return value
Remarks
Applies To

Advances the enumerator to the next element of the array.

var value = SP.ArrayListEnumerator.moveNext();

Return value

Type: Boolean

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

Exceptions

Error

The array was modified.

Remarks

After an enumerator is created or after the Reset method is called, an enumerator is positioned before the first element of the array, and the first call to this method moves the enumerator to the first element of the array.

If this method passes the end of the array, the enumerator is positioned after the last element 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.ArrayListEnumerator Class

See Also

Reference

SP.ArrayListEnumerator Methods

SP.ArrayListEnumerator Properties

SP Namespace