This documentation is archived and is not being maintained.
Package::Open Method
Visual Studio 2010
Opens a package.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Open(Stream) | Opens a package on a given IO stream. |
|
Open(String) | Opens a package at a given path and file name. |
|
Open(Stream, FileMode) | Opens a package with a given IO stream and file mode. |
|
Open(String, FileMode) | Opens a package at a given path using a given file mode. |
|
Open(Stream, FileMode, FileAccess) | Opens a package with a given IO stream, file mode, and file access setting. |
|
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.
Show: