Export (0) Print
Expand All

XmlWriter.Create Method

Creates a new XmlWriter instance.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Create(Stream) Creates a new XmlWriter instance using the specified stream.
Public method Static member Create(String) Creates a new XmlWriter instance using the specified filename.
Public method Static member Create(StringBuilder) Creates a new XmlWriter instance using the specified StringBuilder.
Public method Static member Create(TextWriter) Creates a new XmlWriter instance using the specified TextWriter.
Public method Static member Create(XmlWriter) Creates a new XmlWriter instance using the specified XmlWriter object.
Public method Static member Create(Stream, XmlWriterSettings) Creates a new XmlWriter instance using the stream and XmlWriterSettings object.
Public method Static member Create(String, XmlWriterSettings) Creates a new XmlWriter instance using the filename and XmlWriterSettings object.
Public method Static member Create(StringBuilder, XmlWriterSettings) Creates a new XmlWriter instance using the StringBuilder and XmlWriterSettings objects.
Public method Static member Create(TextWriter, XmlWriterSettings) Creates a new XmlWriter instance using the TextWriter and XmlWriterSettings objects.
Public method Static member Create(XmlWriter, XmlWriterSettings) Creates a new XmlWriter instance using the specified XmlWriter and XmlWriterSettings objects.
Top

Although the Microsoft .NET Framework includes the XmlTextWriter class, which is a concrete implementation of the XmlWriter class, in the 2.0 release the recommended practice is to create XmlWriter instances using the Create method. For more information, see Creating XML Writers.

Community Additions

ADD
Show:
© 2014 Microsoft