EnumerableQuery<T>.IEnumerable.GetEnumerator 方法

定义

返回一个枚举数,该枚举数可以循环访问关联的 IEnumerable<T> 集合,如果该集合为空,则循环访问通过将关联的表达式目录树重写为 IEnumerable<T> 数据源上的查询并执行该查询而得到的集合。Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.

此 API 支持产品基础结构,不能在代码中直接使用。

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

返回

可用来循环访问关联的数据源的枚举数。An enumerator that can be used to iterate through the associated data source.

实现

适用于