ZipFile Members

SharpZip Compression Library

SharpZip Compression Library

ZipFile Members

ZipFile overview

Public Instance Constructors

ZipFile Overloaded. Initializes a new instance of the ZipFile class.

Public Instance Fields

KeysRequired Event handler for handling encryption keys.

Public Instance Properties

EntryByIndex Indexer property for ZipEntries
Name Gets the name of this zip file.
Password Password to be used for encrypting/decrypting files.
Size Gets the number of entries in this zip file.
ZipFileComment Gets the comment for the zip file.

Public Instance Methods

Close Closes the ZipFile. If the stream is IsStreamOwner then this also closes the underlying input stream. Once closed, no further instance methods should be called.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FindEntry Return the index of the entry with a matching name
GetEntry Searches for a zip entry in this archive with the given name. String comparisons are case insensitive
GetEnumerator Returns an enumerator for the Zip entries in this Zip file.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetInputStreamOverloaded. Creates an input stream reading the given zip entry as uncompressed data. Normally zip entry should be an entry returned by GetEntry().
GetType (inherited from Object) Gets the Type of the current instance.
TestArchive Test an archive for integrity/validity
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ZipFile Class | ICSharpCode.SharpZipLib.Zip Namespace