PrintJobInfoCollection.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.
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
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk