IADsPrintJob Property: Priority

Property Name
Priority

Property Type
Long

Description
Gets and sets the priority of the print job. Valid values are from 1 to 99, where 1 is the lowest priority and 99 is the highest priority.

Example

Dim PrintQueueOperations As IADsPrintQueueOperations
Dim PrintJob As IADsPrintJob
'Get the IADsPrintQueueOperations interface. In the path HP DeskJet '500C is the print queue.
Set PrintQueueOperations = GetObject ("NTDS://MSFT/MOON/HP DeskJet 500C")
'Enumerate individual print jobs and set the Priority property.
'Here 99 is the highest priority and 0 is the lowest priority
For each PrintJob In PrintQueueOperations.PrintJobs
 PrintJob.Priority = 50
 'Commit the changes
  PrintJob.SetInfo
Next PrintJob

 

See Also