PrintJob.Delete Method

Deletes this print job

[Visual Basic]
Public Sub Delete 
public void Delete();
public: void Delete();
public function Delete();


Throws an InsufficentPrintJobAccessRightsException if the logged in user does not have sufficient privilege to delete this print job


[Visual Basic] The following example deletes a job

[Visual Basic] 
Public Sub DeleteAJob(ByVal pjIn As PrintJob)

   With pjIn
     Catch ej As PrinterQueueWatch.PrinterMonitoringExceptions.InsufficentPrintJobAccessRightsException
       Debug.Write("You cannot delete this print job")
     End Try
   End With

End Sub


Namespace: PrinterQueueWatch

Platforms:  Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

PrintJob overview , All PrintJob members

© 2003 Merrion Computing Ltd. All rights reserved.