PrintJobInfoCollection.GetEnumerator Метод

Определение

Возвращает объект, реализующий универсальный интерфейс IEnumerator, закрытый с помощью PrintSystemJobInfo.

public:
 virtual System::Collections::Generic::IEnumerator<System::Printing::PrintSystemJobInfo ^> ^ GetEnumerator();
public virtual System.Collections.Generic.IEnumerator<System.Printing.PrintSystemJobInfo> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Printing.PrintSystemJobInfo>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Printing.PrintSystemJobInfo>
Public Overridable Function GetEnumerator () As IEnumerator(Of PrintSystemJobInfo)

Возвращаемое значение

Объект, который реализует универсальный интерфейс IEnumerator и может выполнять перебор объектов PrintSystemJobInfo из коллекции PrintJobInfoCollection.

Реализации

Комментарии

Рекомендуется использовать оператор для foreach итерации всех элементов коллекции. Используйте GetEnumerator только в том случае, если необходимо настроить итерацию, например пропуская все остальные элементы.

Применяется к