PrintQueueCollection.IEnumerable.GetEnumerator Method

Definition

Returns an object that implements the generic IEnumerator interface that has been closed with PrintQueue.

 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

Returns

An object that implements the generic IEnumerator and that can iterate through the PrintQueue objects that the PrintQueueCollection contains.

Implements

Remarks

We recommend that you use the foreach statement to iterate through all members of the collection. Use GetEnumerator only when you need to customize iteration, such as by skipping every other member.

Applies to