Поделиться через


OpenXmlPackage.Dispose Method (Boolean)

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
Protected Overridable Sub Dispose ( _
    disposing As Boolean _
)
'Usage
Dim disposing As Boolean

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

Parameters

  • disposing
    Type: System.Boolean
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

See Also

Reference

OpenXmlPackage Class

OpenXmlPackage Members

Dispose Overload

DocumentFormat.OpenXml.Packaging Namespace