Прочетете на английски Редактиране

Споделяне чрез


PrintQueueCollection.IEnumerable.GetEnumerator Method

Definition

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

C#
System.Collections.IEnumerator 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

Продукт Версии
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10