PrintQueue.GetPrintCapabilitiesAsXml Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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