Udostępnij za pośrednictwem


PackageExtensions.GetPackage(OpenXmlPackage) Method

Definition

Gets the current IPackage for the package.

public static DocumentFormat.OpenXml.Packaging.IPackage GetPackage (this DocumentFormat.OpenXml.Packaging.OpenXmlPackage package);
static member GetPackage : DocumentFormat.OpenXml.Packaging.OpenXmlPackage -> DocumentFormat.OpenXml.Packaging.IPackage
<Extension()>
Public Function GetPackage (package As OpenXmlPackage) As IPackage

Parameters

package
OpenXmlPackage

Current package.

Returns

The underlying IPackage.

Exceptions

If package is null.

Applies to