ZipEntry Properties

SharpZip Compression Library

SharpZip Compression Library

ZipEntry Properties

The properties of the ZipEntry class are listed below. For a complete list of ZipEntry class members, see the ZipEntry Members topic.

Public Instance Properties

Comment Gets/Sets the entry comment.
CompressedSize Gets/Sets the size of the compressed data.
CompressionMethod Gets/Sets the compression method. Only Deflated and Stored are supported.
Crc Gets/Sets the crc of the uncompressed data.
DateTime Gets/Sets the time of last modification of the entry.
DosTime Get/Set DosTime
ExternalFileAttributes Get/Set external file attributes as an integer. The values of this are operating system dependant see HostSystem for details
ExtraData Gets/Sets the extra data.
Flags Get/Set general purpose bit flag for entry
HostSystem Gets the compatability information for the external file attribute If the external file attributes are compatible with MS-DOS and can be read by PKZIP for DOS version 2.04g then this value will be zero. Otherwise the value will be non-zero and identify the host system on which the attributes are compatible.
IsCrypted Get/Set flag indicating if entry is encrypted. A simple helper routine to aid interpretation of flags
IsDirectory Gets a value indicating of the if the entry is a directory. A directory is determined by an entry name with a trailing slash '/'. The external file attributes can also mark a file as a directory. The trailing slash convention should always be followed however.
IsFile Get a value of true if the entry appears to be a file; false otherwise
Name Returns the entry name. The path components in the entry should always separated by slashes ('/'). Dos device names like C: should also be removed. See CleanName.
Offset Get/set offset for use in central header
RequiresZip64 Gets a value indicating if the entry requires Zip64 extensions to be stored
Size Gets/Sets the size of the uncompressed data.
Version Get minimum Zip feature version required to extract this entry
VersionMadeBy Get the version made by for this entry or zero if unknown. The value / 10 indicates the major version number, and the value mod 10 is the minor version number
ZipFileIndex Get/Set index of this entry in Zip file

See Also

ZipEntry Class | ICSharpCode.SharpZipLib.Zip Namespace