XmlDictionaryWriter.CreateTextWriter XmlDictionaryWriter.CreateTextWriter XmlDictionaryWriter.CreateTextWriter Method

Definition

Creates an instance of XmlDictionaryWriter that writes text XML.

Overloads

CreateTextWriter(Stream, Encoding) CreateTextWriter(Stream, Encoding) CreateTextWriter(Stream, Encoding)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream, Encoding, Boolean) CreateTextWriter(Stream, Encoding, Boolean) CreateTextWriter(Stream, Encoding, Boolean)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream) CreateTextWriter(Stream) CreateTextWriter(Stream)

Creates an instance of XmlDictionaryWriter that writes text XML.

CreateTextWriter(Stream, Encoding) CreateTextWriter(Stream, Encoding) CreateTextWriter(Stream, Encoding)

Creates an instance of XmlDictionaryWriter that writes text XML.

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream, System.Text.Encoding encoding);
static member CreateTextWriter : System.IO.Stream * System.Text.Encoding -> System.Xml.XmlDictionaryWriter

Parameters

stream
Stream Stream Stream

The stream to write to.

encoding
Encoding Encoding Encoding

The character encoding of the output.

Returns

Remarks

An instance of XmlDictionaryWriter.

CreateTextWriter(Stream, Encoding, Boolean) CreateTextWriter(Stream, Encoding, Boolean) CreateTextWriter(Stream, Encoding, Boolean)

Creates an instance of XmlDictionaryWriter that writes text XML.

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, bool ownsStream);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream, System.Text.Encoding encoding, bool ownsStream);
static member CreateTextWriter : System.IO.Stream * System.Text.Encoding * bool -> System.Xml.XmlDictionaryWriter

Parameters

stream
Stream Stream Stream

The stream to write to.

encoding
Encoding Encoding Encoding

The character encoding of the stream.

ownsStream
Boolean Boolean Boolean

true to indicate that the stream is closed by the writer when done; otherwise false.

Returns

CreateTextWriter(Stream) CreateTextWriter(Stream) CreateTextWriter(Stream)

Creates an instance of XmlDictionaryWriter that writes text XML.

public:
 static System::Xml::XmlDictionaryWriter ^ CreateTextWriter(System::IO::Stream ^ stream);
public static System.Xml.XmlDictionaryWriter CreateTextWriter (System.IO.Stream stream);
static member CreateTextWriter : System.IO.Stream -> System.Xml.XmlDictionaryWriter

Parameters

stream
Stream Stream Stream

The stream to write to.

Returns

Remarks

The text writer writes the XML in UTF-8 format.

Applies to