XamlXmlWriter.Dispose Method (Boolean)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Releases the unmanaged resources used by XamlXmlWriter and optionally releases the managed resources.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected override void Dispose(
	bool disposing


Type: System.Boolean

true to release the unmanaged resources; otherwise, false.

This implementation calls Close on the underlying XmlWriter or TextWriter for cases where CloseOutput is true in any supplied XamlXmlWriterSettings. Otherwise, it calls Flush.

.NET Framework
Available since 4.0
Return to top