This documentation is archived and is not being maintained.

Package::Open Method

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.

  NameDescription
Public method Static member Open(Stream) Opens a package on a given IO stream.
Public method Static member Open(String) Opens a package at a given path and file name.
Public method Static member Open(Stream, FileMode) Opens a package with a given IO stream and file mode.
Public method Static member Open(String, FileMode) Opens a package at a given path using a given file mode.
Public method Static member Open(Stream, FileMode, FileAccess) Opens a package with a given IO stream, file mode, and file access setting.
Public method Static member Open(String, FileMode, FileAccess) Opens a package at a given path using a given file mode and file access setting.
Public method Static member Open(String, FileMode, FileAccess, FileShare) Opens a package at a given path using a given file mode, file access, and file share setting.
Top

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.

No code example is currently available or this language may not be supported.
Show: