## XmlWriterSettings::get_CloseOutput method


Returns a value indicating whether the [XmlWriter](../../xmlwriter/) should also close the underlying stream or TextWriter when the [XmlWriter::Close](../../xmlwriter/close/) method is called.

```cpp
bool System::Xml::XmlWriterSettings::get_CloseOutput()
```


### ReturnValue

**true** to also close the underlying stream or TextWriter; otherwise, **false**. The default is **false**.

## See Also

* Class [XmlWriterSettings](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
