Edit

Share via


DataServiceQuery<TElement>.IEnumerable.GetEnumerator Method

Definition

Executes the query and returns the results as a collection.

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

Returns

An enumerator over the query results.

Implements

Remarks

When the IEnumerable.GetEnumerator method is called, the DataServiceQuery<TElement> is executed against the service.

GetEnumerator returns an enumerable the first time it is called. On successive calls it returns null.

Applies to