Class SevenZipEntrySettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
Nastavení používaná k kompresi nebo dekompresi 7Z položek.
public class SevenZipEntrySettings
Dědičnost
object ← SevenZipEntrySettings
Děděné členy
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Konstruktor
SevenZipEntrySettings(SevenZipCompressionSettings, SevenZipEncryptionSettings)
Inicializuje novou instanci třídy Aspose.Zip.Saving.SevenZipEntrySettings.
public SevenZipEntrySettings(SevenZipCompressionSettings compressionSettings = null, SevenZipEncryptionSettings encryptionSettings = null)
Parametry
compressionSettings
SevenZipCompressionSettings
Nastavení pro kompresi. Předávejte null pro výchozí nastavení LZMA.
Může být jedním z těchto:
- Aspose.Zip.Saving.SevenZipLZMACompressionSettings
- Aspose.Zip.Saving.SevenZipLZMA2CompressionSettings
- Aspose.Zip.Saving.SevenZipBZip2CompressionSettings
- Aspose.Zip.Saving.SevenZipStoreCompressionSettings
- Aspose.Zip.Saving.SevenZipPPMdCompressionSettings
encryptionSettings
SevenZipEncryptionSettings
Nastavení pro šifrování. Předávejte null, pokud není potřeba šifrovat nebo dešifrovat.
Může být pouze jedno:
- Aspose.Zip.Saving.SevenZipAESEncryptionSettings
Vlastnosti
CompressHeader
Získá nebo nastaví hodnotu, která určuje, zda komprimovat hlavičku archivu.
public bool CompressHeader { get; set; }
Hodnota vlastnosti
Poznámky
Toto nastavení je ekvivalentní přepínači -mhc=on
nástroje 7-Zip. V současné době je nekompatibilní se šifrováním hlavičky.
CompressionSettings
Získá nastavení pro rutinu komprese nebo dekomprese.
public SevenZipCompressionSettings CompressionSettings { get; }
Hodnota vlastnosti
EncryptionSettings
Získá nastavení pro šifrování nebo dešifrování. Nastavení konkrétní položky se mohou lišit.
public SevenZipEncryptionSettings EncryptionSettings { get; }
Hodnota vlastnosti
Poznámky
Aspose.Zip.Saving.SevenZipAESEncryptionSettings je jedinou možností pro archivy 7Z.