## XmlTextWriter::get_BaseStream method


Returns the underlying stream object.

```cpp
SharedPtr<IO::Stream> System::Xml::XmlTextWriter::get_BaseStream()
```


### ReturnValue

The stream to which the [XmlTextWriter](../) is writing or **nullptr** if the [XmlTextWriter](../) was constructed using a TextWriter that does not inherit from the StreamWriter class.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XmlTextWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
