ZipArchive Methods
.NET Framework 4.5
The ZipArchive type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateEntry(String) | Creates an empty entry that has the specified path and entry name in the zip archive. |
|
CreateEntry(String, CompressionLevel) | Creates an empty entry that has the specified entry name and compression level in the zip archive. |
|
Dispose() | Releases the resources used by the current instance of the ZipArchive class. |
|
Dispose(Boolean) | Called by the Dispose() and Finalize() methods to release the unmanaged resources used by the current instance of the ZipArchive class, and optionally finishes writing the archive and releases the managed resources. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEntry | Retrieves a wrapper for the specified entry in the zip archive. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
CreateEntryFromFile(String, String) | Overloaded. Archives a file by compressing it and adding it to the zip archive. (Defined by ZipFileExtensions.) |
|
CreateEntryFromFile(String, String, CompressionLevel) | Overloaded. Archives a file by compressing it using the specified compression level and adding it to the zip archive. (Defined by ZipFileExtensions.) |
|
ExtractToDirectory | Extracts all the files in the zip archive to a directory on the file system. (Defined by ZipFileExtensions.) |