Share via


OpenXmlPackage.Dispose Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Flushes and saves the content, closes the document, and releases all resources.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As OpenXmlPackage

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

See Also

Reference

OpenXmlPackage Class

OpenXmlPackage Members

Dispose Overload

DocumentFormat.OpenXml.Packaging Namespace