Επεξεργασία

Κοινή χρήση μέσω


PrintJobInfoCollection.GetEnumerator Method

Definition

Gets an object that implements the generic IEnumerator interface that is closed with 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)

Returns

An object that implements the generic IEnumerator interface and that can iterate through the PrintSystemJobInfo objects that the PrintJobInfoCollection 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