IBindableIterable 介面

定義

擴充 IIterable 以啟用資料系結基礎結構需求。

。網 此介面會顯示為 System.Collections.IEnumerable

public interface class IBindableIterable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(57486344, 57129, 16815, 138, 162, 215, 116, 190, 98, 186, 111)]
struct IBindableIterable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(57486344, 57129, 16815, 138, 162, 215, 116, 190, 98, 186, 111)]
public interface IEnumerable
Public Interface IEnumerable
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

使用 .NET 進行程式設計時,此介面會隱藏,開發人員應該使用 System.Collections.IEnumerable 介面。

C++/WinRT 延伸模組函式

注意

擴充功能函式存在於特定Windows 執行階段 API 的 C++/WinRT 投影類型上。 例如, winrt::Windows::Foundation::IAsyncActionIAsyncAction的 C++/WinRT 投影類型。 擴充函式不是應用程式二進位介面的一部分, (實際Windows 執行階段類型的 ABI) 介面,因此它們不會列為Windows 執行階段 API 的成員。 但您可以從任何 C++/WinRT 專案內呼叫它們。 請參閱擴充 Windows 執行階段 API 的 C++/WinRT 函式。

auto begin() const;

將反覆運算器傳回集合的第一個專案,以用於 C++ 演算法,例如範圍型 for 迴圈。

auto end() const;

將反覆運算器傳回至集合的最後一個元素之後的反覆運算器,以用於 C++ 演算法,例如範圍型 for 迴圈。

方法

First()

傳回可系結反覆運算器,逐一查看集合中的專案。

適用於

另請參閱