Share via


OpenXmlPackage.Dispose Method (Boolean) (Microsoft.Office.DocumentFormat.OpenXml.Packaging)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace: Microsoft.Office.DocumentFormat.OpenXml.Packaging
Assembly: Microsoft.Office.DocumentFormat.OpenXml (in microsoft.office.documentformat.openxml.dll)

Syntax

'Declaration
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

Me.Dispose(disposing)
protected virtual void Dispose (
    bool disposing
)

Parameters

  • disposing
    True to release both managed and unmanaged resources; false to release only unmanaged resources.

See Also

Reference

OpenXmlPackage Class
OpenXmlPackage Members
Microsoft.Office.DocumentFormat.OpenXml.Packaging Namespace