Reads a zip file archive and returns the instance.
Declaration Syntax
Parameters
- fileName (String)
- The name of the zip archive to open. This can be a fully-qualified or relative pathname.
Return Value
The instance read from the zip archive.
Remarks
The stream is read using the default System.Text.Encoding, which is the IBM437 codepage.
Exceptions
Exception | Condition |
---|---|
Exception |
Thrown if the ZipFile cannot be read. The implementation of this method
relies on System.IO.File.OpenRead, which can throw a variety of exceptions,
including specific exceptions if a file is not found, an unauthorized access
exception, exceptions for poorly formatted filenames, and so on.
|
See Also