IIterator<T> IIterator<T> IIterator<T> IIterator<T> IIterator<T> Interface


Supports simple iteration over a collection.

public : interface IIterator<T>
struct winrt::Windows::Foundation::Collections::IIterator<T>
public interface IIterator<T>
Public Interface IIterator<T>
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)


The IIterator<T> interface isn't explicitly hidden by the language projection for .NET, but the IIterable; interface is hidden. For most .NET scenarios that specifically require an API for the iterator object, you'll probably use IEnumerator (perhaps with a specific type constraint) as obtained from calling IEnumerable.GetEnumerator.


Current Current Current Current Current

Gets the current item in the collection.

HasCurrent HasCurrent HasCurrent HasCurrent HasCurrent

Gets a value that indicates whether the iterator refers to a current item or is at the end of the collection.


GetMany(T[]) GetMany(T[]) GetMany(T[]) GetMany(T[]) GetMany(T[])

Retrieves all items in the collection.

MoveNext() MoveNext() MoveNext() MoveNext() MoveNext()

Advances the iterator to the next item in the collection.

See also