Package::Open Method

 

Opens a package.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticOpen(Stream^)

Opens a package on a given IO stream.

System_CAPS_pubmethodSystem_CAPS_staticOpen(Stream^, FileMode)

Opens a package with a given IO stream and file mode.

System_CAPS_pubmethodSystem_CAPS_staticOpen(Stream^, FileMode, FileAccess)

Opens a package with a given IO stream, file mode, and file access setting.

System_CAPS_pubmethodSystem_CAPS_staticOpen(String^)

Opens a package at a given path and file name.

System_CAPS_pubmethodSystem_CAPS_staticOpen(String^, FileMode)

Opens a package at a given path using a given file mode.

System_CAPS_pubmethodSystem_CAPS_staticOpen(String^, FileMode, FileAccess)

Opens a package at a given path using a given file mode and file access setting.

System_CAPS_pubmethodSystem_CAPS_staticOpen(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.

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