Mono Class Library: System.Xml.XmlTextWriter Overview | Members

System.Xml.XmlTextWriter.BaseStream Property

Gets the underlying stream used by the writer.

public System.IO.Stream BaseStream { get; }

Value

A System.IO.Stream, or null if the current instance does not use an underlying stream.

Remarks

This property is read-only.

If the current instance was constructed using a System.IO.TextWriter that is a subclass of the System.IO.StreamWriter class, this property is equivalent to the System.IO.StreamWriter.BaseStream property.

If the writer was constructed using a System.IO.Stream, this property returns the Stream passed to the constructor.

If the writer was constructed using a file name, this property returns the Stream representing the file.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0