DataServiceQuery.IEnumerable.GetEnumerator 方法

定義

取得 IEnumerator 物件,這個物件可用來逐一查看查詢所傳回的集合。Gets the IEnumerator object that can be used to iterate through the collection returned by the query.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

傳回

IEnumerator

查詢結果的列舉程式。An enumerator over the query results.

實作

備註

列舉程式可以用來讀取集合中的資料,但是無法用來修改基礎集合。Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.

適用於