SevenZipArchive Class

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

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

The SevenZipArchive type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleSevenZipArchive(SevenZipEntrySettings)
Initializes a new instance of the SevenZipArchive class with optional settings for its entries.
Public methodCode exampleSevenZipArchive(Stream)
Initializes a new instance of the SevenZipArchive class and composes entries list can be extracted from the archive.
Public methodCode exampleSevenZipArchive(String)
Initializes a new instance of the SevenZipArchive class and composes entries list can be extracted from the archive.
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodCode exampleExtractToDirectory
Extracts all the files in the archive to the directory provided.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(Inherited from Object.)
See Also