本文整理汇总了VB.NET中System.Printing.PrintSystemJobInfo.JobName属性的典型用法代码示例。如果您正苦于以下问题:VB.NET PrintSystemJobInfo.JobName属性的具体用法?VB.NET PrintSystemJobInfo.JobName怎么用?VB.NET PrintSystemJobInfo.JobName使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。
在下文中一共展示了PrintSystemJobInfo.JobName属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1:
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