ZipArchive Members
In This Article
#Constructors
Name | Description |
---|---|
Zip |
Initializes a new instance of the Zip |
Zip |
Initializes a new instance of the Zip |
#Properties
Name | Description |
---|---|
Catch |
Allows you to set an application-wide flag that specifies whether exceptions which occur in Zip |
Count | Obtains the number of zip items in the archive. |
Encryption |
Gets or sets the default encryption type. |
File |
Reserved for future use. |
Item[Int32] | Provides indexed access to an individual zip item in the archive. |
Item[String] | Provides access to individual zip items in the archive by their names. |
Options |
Provides access to archive options. |
Password | Gets or sets the password for an encrypted archive. |
#Methods
Name | Description |
---|---|
Add |
Creates a zip item from a byte array and adds it to archive. |
Add |
Recursively add files and directories to the archive. |
Add |
Recursively add files and directories to the archive directory named by the last component of the specified path. |
Add |
Creates a zip file item for the specified file and adds it to the specified path in the archive. |
Add |
Creates a zip file item for the specified file and adds it to the archive. |
Add |
Adds files to the archive at the specified path. |
Add |
Adds files to archive. |
Add |
Creates a zip stream item and adds it to the archive. |
Add |
Creates a text zip item and adds it to archive. |
Add |
Creates a text zip item and adds it to the archive. |
Add |
Creates an empty text zip item and adds it to archive. |
Dispose() |
Clears all zip items, disposes all associated streams and releases all resources used by the Zip |
Equals |
Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals |
Determines whether the specified object is equal to the current object. Inherited from Object. |
Extract() | Extract all archive items as files into the current directory. |
Extract |
Extracts all archive items as files into the specified directory and enables you to define the behavior in case of file name conflicts. |
Extract |
Extracts all archive items as files into the specified directory. |
Get |
Serves as the default hash function. Inherited from Object. |
Get |
Gets the Type of the current instance. Inherited from Object. |
Is |
Reserved for future use. |
Memberwise |
Creates a shallow copy of the current Object. Inherited from Object. |
Read |
Static method that creates a Zip |
Read |
Static method that creates a Zip |
Read |
Static method that creates a Zip |
Read |
Static method that creates a Zip |
Read |
Static method that creates a Zip |
Read |
Static method that creates a Zip |
Reference |
Determines whether the specified Object instances are the same instance. Inherited from Object. |
Remove |
Deletes a specified zip item from the archive. |
Remove |
Deletes a specified zip item from the archive. |
Save |
Compresses data and saves it to a specified stream. |
Save |
Compresses data and saves it to a file. |
To |
Returns a string that represents the current object. Inherited from Object. |
Update |
Recursively updates files and nested directories starting from the specified directory. |
Update |
Recursively updates files and nested directories starting from the specified directory. |
Update |
Updates content of the zip file item. |
Update |
Updates content of the zip file item. |
Update |
Updates the content of the zip stream item. |
Update |
Updates the content of the zip text item and specifies a new character encoding. |
Update |
Updates the content of the zip text item. |
Validate() | Verifies archive entries by extracting them into memory and catching exceptions. |
#Events
Name | Description |
---|---|
Allow |
Occurs when the item extracted from the archive tries to overwrite a file that already exists. |
Error | Fires when an error occurs while adding files to the archive, processing archive items or saving the archive. |
Item |
Occurs before a zip item is added to the archive. |
Progress | Occurs evenly while the items are being compressed to indicate progress. |
See Also