Class SevenZipArchiveEntry

SevenZipArchiveEntry class

Represents single file within 7z archive.

public abstract class SevenZipArchiveEntry : IArchiveFileEntry

Properties

NameDescription
CompressedSize { get; }Gets size of compressed file.
CompressionSettings { get; }Gets settings for compression or decompression.
IsDirectory { get; }Gets a value indicating whether the entry represents directory.
ModificationTime { get; }Gets last modified date and time.
Name { get; }Gets name of the entry within archive.
UncompressedSize { get; }Gets size of original file.

Methods

NameDescription
Extract(Stream, string)Extracts the entry to the stream provided.
Extract(string, string)Extracts the entry to the filesystem by the path provided.
Open(string)Opens the entry for extraction and provides a stream with entry content.

Events

NameDescription
event CompressionProgressedRaises when a portion of raw stream compressed.

Remarks

Cast an SevenZipArchiveEntry instance to SevenZipArchiveEntryEncrypted to determine whether the entry encrypted or not.

See Also