Creates a collection that contains a PrintSystemJobInfo object for each job in the queue.
Assembly: System.Printing (in System.Printing.dll)
The following example shows how to use this method when performing the same action on every job in a queue.
For Each pq As PrintQueue In myPrintQueues pq.Refresh() Dim jobs As PrintJobInfoCollection = pq.GetPrintJobInfoCollection() For Each job As PrintSystemJobInfo In jobs ' Since the user may not be able to articulate which job is problematic, ' present information about each job the user has submitted. If job.Submitter = userName Then atLeastOne = True jobList = jobList & vbLf & "Server:" & line jobList = jobList & vbLf & vbTab & "Queue:" & pq.Name jobList = jobList & vbLf & vbTab & "Location:" & pq.Location jobList = jobList & vbLf & vbTab & vbTab & "Job: " & job.JobName & " ID: " & job.JobIdentifier End If Next job ' end for each print job Next pq ' end for each print queue
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.