PrinterInformation.JobCount Property

Returns the number of jobs queued to be printed on this printer

[Visual Basic]
Public ReadOnly Property JobCount As Int32
[C#]
public Int32 JobCount {get;}
[C++]
public: __property Int32 get_JobCount();
[JScript]
public function get JobCount() : Int32;

Property Value

Returns the number of jobs queued to be printed against this printer

Remarks

Example

[Visual Basic] The following example prints the JobCount of a job to a trace

[Visual Basic] 
Public Sub TraceJobCount(ByVal piIn As PrinterInformation)

        With piIn
            Trace.WriteLine("** JobCount: " & .JobCount.ToString)
        End With

End Sub

Requirements

Namespace: PrinterQueueWatch

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

See Also

PrinterInformation overview , All PrinterInformation members


© 2003 Merrion Computing Ltd. All rights reserved.