PrintJobInfoCollection.GetEnumerator Metoda

Definicja

Pobiera obiekt, który implementuje interfejs ogólny IEnumerator , który jest zamknięty za pomocą PrintSystemJobInfopolecenia .

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)

Zwraca

IEnumerator<PrintSystemJobInfo>

Obiekt, który implementuje interfejs ogólny IEnumerator i może iterować przez PrintSystemJobInfo obiekty, które PrintJobInfoCollection zawiera.

Implementuje

Uwagi

Zalecamy użycie instrukcji foreach do iterowania wszystkich elementów członkowskich kolekcji. Używaj GetEnumerator tylko wtedy, gdy trzeba dostosować iterację, na przykład pomijając każdy inny element członkowski.

Dotyczy