Package::Open Method
Opens a package.
Assembly: WindowsBase (in WindowsBase.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Open(Stream^) | Opens a package on a given IO stream. |
![]() ![]() | Open(Stream^, FileMode) | Opens a package with a given IO stream and file mode. |
![]() ![]() | Open(Stream^, FileMode, FileAccess) | Opens a package with a given IO stream, file mode, and file access setting. |
![]() ![]() | Open(String^) | Opens a package at a given path and file name. |
![]() ![]() | Open(String^, FileMode) | Opens a package at a given path using a given file mode. |
![]() ![]() | Open(String^, FileMode, FileAccess) | Opens a package at a given path using a given file mode and file access setting. |
![]() ![]() | Open(String^, FileMode, FileAccess, FileShare) | Opens a package at a given path using a given file mode, file access, and file share setting. |
ZipPackage is the default package type that is used by the Open method.
For additional information, see the Open Packaging Conventions (OPC) specification available for download at http://go.microsoft.com/fwlink/?LinkID=71255.
The following example shows how to create a new Package that incorporates PackageRelationship and PackagePart elements together with stored data. For the complete sample, see Writing a Package Sample.

