PrintTicket.GetXmlStream Method

Definition

Returns a MemoryStream object that represents the property values of a PrintTicket as an XML stream that conforms to the Print Schema.

C#
public System.IO.MemoryStream GetXmlStream();

Returns

A MemoryStream object that describes the print ticket with XML that conforms to the Print Schema.

Remarks

If any properties of the PrintTicket are null, they will simply not be included in the XML markup.

If the PrintTicket object was constructed with a PrintTicket document that contains markup elements not represented by any of the PrintTicket class's public properties, those elements will be included in the PrintTicket document returned by this method.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also