XmlTextWriter Constructor (TextWriter)

 

Creates an instance of the XmlTextWriter class using the specified TextWriter.

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

public XmlTextWriter(
	TextWriter w
)

Parameters

w
Type: System.IO.TextWriter

The TextWriter to write to. It is assumed that the TextWriter is already set to the correct encoding.

System_CAPS_noteNote

Starting with the .NET Framework 2.0, we recommend that you create XmlWriter instances by using the XmlWriter.Create method and the XmlWriterSettings class to take advantage of new functionality.

.NET Framework
Available since 1.1
Return to top
Show: