IIterable<T> Interface
Definition
Exposes an iterator that supports simple iteration over a collection of a specified type.
.NET This interface appears as System.Collections.Generic.IEnumerable
. In any case where a Windows Runtime type has implemented IIterable<T>, .NET code can use the APIs of IEnumerable instead. C# code can use foreach, Visual Basic code can use For Each...Next. All the .NET extension methods that are based on IEnumerable and included in .NET for UWP apps are accessible (including the System.Linq extensions, so long as you've included the namespace).
public interface class IIterable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4205151722, 25108, 16919, 175, 218, 127, 70, 222, 88, 105, 179)]
template <typename T>
struct IIterable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(4205151722, 25108, 16919, 175, 218, 127, 70, 222, 88, 105, 179)]
public interface IEnumerable<T>
Public Interface IEnumerable(Of T)
Type Parameters
- T
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
Remarks
When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IEnumerableIEnumerable
explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator from a class, cast to IEnumerable
Methods
First() |
Returns an iterator for the items in the collection. |