CreateTextWriter Method (Stream, Encoding)
Collapse the table of content
Expand the table of content

XmlDictionaryWriter.CreateTextWriter Method (Stream, Encoding)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates an instance of XmlDictionaryWriter that writes text XML.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public static XmlDictionaryWriter CreateTextWriter(
	Stream stream,
	Encoding encoding


Type: System.IO.Stream
The stream to write to.
Type: System.Text.Encoding
The character encoding of the output.

Return Value

Type: System.Xml.XmlDictionaryWriter
An instance of XmlDictionaryWriter.

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft