System.IO.Compression Initializes a new instance of the class from the specified stream. The stream that contains the archive to be read. The stream is already closed or does not support reading. is . The contents of the stream are not in the zip archive format. Initializes a new instance of the class from the specified stream and with the specified mode. The input or output stream. One of the enumeration values that indicates whether the zip archive is used to read, create, or update entries. The stream is already closed, or the capabilities of the stream do not match the mode. is . is an invalid value. The contents of the stream could not be interpreted as a zip archive.-or- is and an entry is missing from the archive or is corrupt and cannot be read.-or- is and an entry is too large to fit into memory. Initializes a new instance of the class on the specified stream for the specified mode, and optionally leaves the stream open. The input or output stream. One of the enumeration values that indicates whether the zip archive is used to read, create, or update entries. to leave the stream open after the object is disposed; otherwise, . The stream is already closed, or the capabilities of the stream do not match the mode. is . is an invalid value. The contents of the stream could not be interpreted as a zip archive.-or- is and an entry is missing from the archive or is corrupt and cannot be read.-or- is and an entry is too large to fit into memory. Initializes a new instance of the class on the specified stream for the specified mode, uses the specified encoding for entry names, and optionally leaves the stream open. The input or output stream. One of the enumeration values that indicates whether the zip archive is used to read, create, or update entries. to leave the stream open after the object is disposed; otherwise, . The encoding to use when reading or writing entry names in this archive. Specify a value for this parameter only when an encoding is required for interoperability with zip archive tools and libraries that do not support UTF-8 encoding for entry names. The stream is already closed, or the capabilities of the stream do not match the mode. is . is an invalid value. The contents of the stream could not be interpreted as a zip archive.-or- is and an entry is missing from the archive or is corrupt and cannot be read.-or- is and an entry is too large to fit into memory. Creates an empty entry that has the specified path and entry name in the zip archive. A path, relative to the root of the archive, that specifies the name of the entry to be created. An empty entry in the zip archive. is . is . The zip archive does not support writing. The zip archive has been disposed. Creates an empty entry that has the specified entry name and compression level in the zip archive. A path, relative to the root of the archive, that specifies the name of the entry to be created. One of the enumeration values that indicates whether to emphasize speed or compression effectiveness when creating the entry. An empty entry in the zip archive. is . is . The zip archive does not support writing. The zip archive has been disposed. Releases the resources used by the current instance of the class. Called by the and methods to release the unmanaged resources used by the current instance of the class, and optionally finishes writing the archive and releases the managed resources. to finish writing the archive and release unmanaged and managed resources; to release only unmanaged resources. Retrieves a wrapper for the specified entry in the zip archive. A path, relative to the root of the archive, that identifies the entry to retrieve. A wrapper for the specified entry in the archive; if the entry does not exist in the archive. is . is . The zip archive does not support reading. The zip archive has been disposed. The zip archive is corrupt, and its entries cannot be retrieved. Deletes the entry from the zip archive. The entry is already open for reading or writing. The zip archive for this entry was opened in a mode other than . The zip archive for this entry has been disposed. Opens the entry from the zip archive. The stream that represents the contents of the entry. The entry is already currently open for writing.-or-The entry has been deleted from the archive.-or-The archive for this entry was opened with the mode, and this entry has already been written to. The entry is either missing from the archive or is corrupt and cannot be read. -or-The entry has been compressed by using a compression method that is not supported. The zip archive for this entry has been disposed. Retrieves the relative path of the entry in the zip archive. The relative path of the entry, which is the value stored in the property. Gets the collection of entries that are currently in the zip archive. The collection of entries that are currently in the zip archive. The zip archive does not support reading. The zip archive has been disposed. The zip archive is corrupt, and its entries cannot be retrieved. Gets a value that describes the type of action the zip archive can perform on entries. One of the enumeration values that describes the type of action (read, create, or update) the zip archive can perform on entries. Gets the zip archive that the entry belongs to. The zip archive that the entry belongs to, or if the entry has been deleted. Gets the compressed size of the entry in the zip archive. The compressed size of the entry in the zip archive. The value of the property is not available because the entry has been modified. OS and Application specific file attributes. The external attributes written by the application when this entry was written. It is both host OS and application dependent. Gets the relative path of the entry in the zip archive. The relative path of the entry in the zip archive. Gets or sets the last time the entry in the zip archive was changed. The last time the entry in the zip archive was changed. The attempt to set this property failed, because the zip archive for the entry is in mode. The archive mode is set to .- or -The archive mode is set to and the entry has been opened. An attempt was made to set this property to a value that is either earlier than 1980 January 1 0:00:00 (midnight) or later than 2107 December 31 23:59:58 (one second before midnight). Gets the uncompressed size of the entry in the zip archive. The uncompressed size of the entry in the zip archive. The value of the property is not available because the entry has been modified. Gets the file name of the entry in the zip archive. The file name of the entry in the zip archive. Represents a package of compressed files in the zip archive format. Represents a compressed file within a zip archive. Specifies values for interacting with zip archive entries. Only reading archive entries is permitted. Only creating new archive entries is permitted. Both read and write operations are permitted for archive entries.