System.Xml.XmlWriter.Create Method

Creates a new System.Xml.XmlWriter instance using the specified System.Xml.XmlWriter and System.Xml.XmlWriterSettings objects.

Syntax

public static XmlWriter Create (XmlWriter output, XmlWriterSettings settings)

Parameters

output
The System.Xml.XmlWriter object that you want to use as the underlying writer.
settings
The System.Xml.XmlWriterSettings object used to configure the new System.Xml.XmlWriter instance. If this is null, a System.Xml.XmlWriterSettings with default settings is used.

Returns

An System.Xml.XmlWriter object that is wrapped around the specified System.Xml.XmlWriter object.

Remarks

This method allows you add additional features to an underlying System.Xml.XmlWriter object. The underlying System.Xml.XmlWriter object can be an object created by the erload:System.Xml.XmlWriter.Create method, or an object created using the System.Xml.XmlTextWriter implementation.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0