GetPrintCapabilities Method
Collapse the table of content
Expand the table of content

PrintQueue::GetPrintCapabilities Method ()

 

Gets a PrintCapabilities object that identifies the capabilities of the printer.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public:
PrintCapabilities^ GetPrintCapabilities()

Return Value

Type: System.Printing::PrintCapabilities^

A PrintCapabilities object that specifies what the printer can and cannot do, such as two-sided coping or automatic stapling.

Exception Condition
PrintQueueException

The PrintCapabilities object could not be retrieved.

The following example shows how to use this method while merging two print tickets.

No code example is currently available or this language may not be supported.

PrintingPermission

for permission to get print capabilities. Associated enumeration: DefaultPrinting

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft