SevenZipArchive Class

This class represents 7z archive file. Use it to compose 7z archives.
Inheritance Hierarchy
SystemObject
  Aspose.Zip.SevenZipSevenZipArchive

Namespace:  Aspose.Zip.SevenZip
Assembly:  Aspose.Zip (in Aspose.Zip.dll) Version: 20.3
Syntax
public class SevenZipArchive : IDisposable

The SevenZipArchive type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleSevenZipArchive
Initializes a new instance of the SevenZipArchive class with optional settings for its entries.
Properties
  NameDescription
Public propertyEntries
Gets entries of SevenZipArchiveEntry type constituting the archive.
Public propertyNewEntrySettings
Compression and encryption settings used for newly added SevenZipArchiveEntry items.
Methods
  NameDescription
Public methodCode exampleCreateEntries(DirectoryInfo, Boolean)
Adds to the archive all files and directories recursively in the directory given.
Public methodCode exampleCreateEntries(String, Boolean)
Adds to the archive all files and directories recursively in the directory given.
Public methodCode exampleCreateEntry(String, Stream, SevenZipEntrySettings)
Create single entry within the archive.
Public methodCode exampleCreateEntry(String, FileInfo, Boolean, SevenZipEntrySettings)
Create single entry within the archive.
Public methodCode exampleCreateEntry(String, Stream, SevenZipEntrySettings, FileSystemInfo)
Create single entry within the archive.
Public methodCode exampleCreateEntry(String, String, Boolean, SevenZipEntrySettings)
Create single entry within the archive.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleSave(Stream)
Saves 7z archive to the stream provided.
Public methodCode exampleSave(String)
Saves archive to destination file provided.
Public methodToString (Inherited from Object.)
See Also