Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IIterable<T> interface

Applies to Windows and Windows Phone

Exposes an iterator that supports simple iteration over a collection of a specified type.

.NET:  This interface appears as System.Collections.Generic.IEnumerable<T>.

Syntax


generic<typename T>
public interface class IIterable

Attributes

[Version(0x06020000)]

Type parameters

T

The type of objects to iterate.

Members

The IIterable interface inherits from the IUnknown interface. IIterable also has these types of members:

Methods

The IIterable interface has these methods. It also inherits methods from the Object class.

MethodDescription
First Returns an iterator for the items in the collection.

 

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this interface is hidden and developers should use the System.Collections.Generic.IEnumerable<T> interface. The GetEnumerator method isn't always available as a direct callable method on the types that list IEnumerable<T> as implemented, but enumerating the collection is still supported. The compiler does the type-casting for you and you won't need to cast to IEnumerable explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator from a class, cast to IEnumerable<T>, using a constraint that matches the item type of the collection.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows::Foundation::Collections

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft