This documentation is archived and is not being maintained.

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.


The print capabilities could not be retrieved.

  • PrintingPermission 

    for permission to get print capabilities. Associated enumeration: DeafultPrinting

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0