GetPrintCapabilitiesAsXml Method
Collapse the table of content
Expand the table of content

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)

member GetPrintCapabilitiesAsXml : unit -> MemoryStream

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

The print capabilities could not be retrieved.


for permission to get print capabilities. Associated enumeration: DefaultPrinting

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft