PrintJobInfoCollection.GetEnumerator Metoda

Definicja

Pobiera obiekt, który implementuje interfejs ogólny IEnumerator 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

Obiekt, który implementuje interfejs ogólny IEnumerator i który może iterować po PrintSystemJobInfo obiektach, 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