Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrintQueue.GetPrintCapabilitiesAsXml Method ()

 

Gets a MemoryStream object that specifies the printer's capabilities as an XML stream that complies with the Print Schema.

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

public MemoryStream GetPrintCapabilitiesAsXml()

Return Value

Type: System.IO.MemoryStream

A MemoryStream specifying the printer's capabilities by using the XML schema "PrintCapabilities," a part of the Print Schema system.

Exception Condition
PrintQueueException

The print capabilities could not be retrieved.

PrintingPermission

for permission to get print capabilities. Associated enumeration: DefaultPrinting

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