This documentation is archived and is not being maintained.

XmlDictionaryWriter.CreateTextWriter Method (Stream, Encoding, Boolean)

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,
	bool ownsStream
)
public static XmlDictionaryWriter CreateTextWriter (
	Stream stream, 
	Encoding encoding, 
	boolean ownsStream
)
public static function CreateTextWriter (
	stream : Stream, 
	encoding : Encoding, 
	ownsStream : boolean
) : XmlDictionaryWriter
Not applicable.

Parameters

stream

The stream to write to.

encoding

The character encoding of the stream.

ownsStream

If true, stream is closed by the writer when done; otherwise false.

Return Value

An instance of XmlDictionaryWriter.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: