Click or drag to resize
PMPrinterGetDirectPrintQueue Method
Gets a PMPrinter object representing a tracked print queue

Namespace: PM90SettingsAPI.Printer
Assembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax
C#
public static PMPrinter GetDirectPrintQueue(
	string servername,
	string printername
)

Parameters

servername
Type: SystemString
Name of the print server or machine tracking the queue
printername
Type: SystemString
Windows name of the queue

Return Value

Type: PMPrinter
New PMPrinter instance, or null if not found.
Exceptions
ExceptionCondition
ArgumentExceptionInvalid or null printer/server name
PMDatabaseConnectionNotFoundExceptionNo database connection available on this system
PMDatabaseExceptionRepresents an database connection or syntax error that has occurred when processing an API request
PMExceptionUnexcpected exception has occurred, check inner exception
Remarks
Currently restrictions take no affect when applied to a cost profile, though they share all of the properties.
See Also