PackageExtensions.GetPackage(OpenXmlPackage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.