PrintJobInfoCollection.IEnumerable.GetEnumerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an object that implements the generic IEnumerator interface that is closed with PrintSystemJobInfo.
virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator
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.