Package.GetPart Method (Uri)
Returns the part with a given URI.
Assembly: WindowsBase (in WindowsBase.dll)
partUri is null.
partUri is not a valid PackagePart uniform resource identifier (URI).
A part with the specified partUri is not in the package.
The package is write-only.
An InvalidOperationException is thrown if a part with the specified partUri does not exist.
The PartExists method can be used to determine whether partUri references an existing part.
By default, a ZipPackage derived implementation of the abstract Package base class is provided and used. In the default operation, internally calls GetPartCore of the ZipPackage class to return a requested part from a ZIP file.
For additional information, see the Open Packaging Conventions (OPC) specification available for download at http://go.microsoft.com/fwlink/?LinkID=71255.
Notes to Inheritors:
GetPartCore method to actually flush the part based on the physical format implemented in the derived class.internally calls the derived class
Available since 3.0