OpenXmlPart.UnloadRootElement Method

Definition

Unloads the RootElement.

C#
public DocumentFormat.OpenXml.OpenXmlPartRootElement? UnloadRootElement ();

Returns

The unloaded RootElement

Remarks

Releases the DOM so the memory can be GC'ed.

Applies to

Product Versions
DocumentFormat.OpenXml 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1