XmlDictionaryWriter.CreateTextWriter Method (Stream, Encoding, Boolean)
[ 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.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
public static XmlDictionaryWriter CreateTextWriter( Stream stream, Encoding encoding, bool ownsStream )
Parameters
- stream
- Type: System.IO.Stream
The stream to write to.
- encoding
- Type: System.Text.Encoding
The character encoding of the stream.
- ownsStream
- Type: System.Boolean
If true, stream is closed by the writer when done; otherwise false.
Show: