Class SevenZipEntrySettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.2.0)
Settings used to compress or decompress 7Z entries.
public class SevenZipEntrySettings
Inheritance
object ← SevenZipEntrySettings
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SevenZipEntrySettings(SevenZipCompressionSettings, SevenZipEncryptionSettings)
Initializes a new instance of the Aspose.Zip.Saving.SevenZipEntrySettings class.
public SevenZipEntrySettings(SevenZipCompressionSettings compressionSettings = null, SevenZipEncryptionSettings encryptionSettings = null)
Parameters
compressionSettings
SevenZipCompressionSettings
Settings for compression. Pass null for default LZMA settings.
Can be one of these:
- Aspose.Zip.Saving.SevenZipLZMACompressionSettings
- Aspose.Zip.Saving.SevenZipLZMA2CompressionSettings
- Aspose.Zip.Saving.SevenZipBZip2CompressionSettings
- Aspose.Zip.Saving.SevenZipStoreCompressionSettings
- Aspose.Zip.Saving.SevenZipPPMdCompressionSettings
encryptionSettings
SevenZipEncryptionSettings
Settings for encryption. Pass null if no need to encrypt or decrypt.
Can be only one:
- Aspose.Zip.Saving.SevenZipAESEncryptionSettings
Properties
CompressHeader
Gets or sets value indicating whether to compress archive header.
public bool CompressHeader { get; set; }
Property Value
Remarks
This setting is equivalent -mhc=on
switch of 7-Zip tool. Currently it is incompatible with header encryption.
CompressionSettings
Gets settings for compression or decompression routine.
public SevenZipCompressionSettings CompressionSettings { get; }
Property Value
EncryptionSettings
Gets settings for encryption or decryption. Settings of particular entry may vary.
public SevenZipEncryptionSettings EncryptionSettings { get; }
Property Value
Remarks
The Aspose.Zip.Saving.SevenZipAESEncryptionSettings is only option of 7Z archives.