Class SevenZipEntrySettings

Class SevenZipEntrySettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

用于压缩或解压缩 7Z 条目的设置。

public class SevenZipEntrySettings

继承

objectSevenZipEntrySettings

继承的成员

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

构造函数

SevenZipEntrySettings(SevenZipCompressionSettings, SevenZipEncryptionSettings)

初始化 Aspose.Zip.Saving.SevenZipEntrySettings 类的新实例。

public SevenZipEntrySettings(SevenZipCompressionSettings compressionSettings = null, SevenZipEncryptionSettings encryptionSettings = null)

参数

compressionSettings SevenZipCompressionSettings

压缩的设置。传递 null 以使用默认 LZMA 设置。

可以是以下之一:

  • Aspose.Zip.Saving.SevenZipLZMACompressionSettings
  • Aspose.Zip.Saving.SevenZipLZMA2CompressionSettings
  • Aspose.Zip.Saving.SevenZipBZip2CompressionSettings
  • Aspose.Zip.Saving.SevenZipStoreCompressionSettings
  • Aspose.Zip.Saving.SevenZipPPMdCompressionSettings

encryptionSettings SevenZipEncryptionSettings

加密的设置。如果不需要加密或解密,请传递 null。

只能是一个:

  • Aspose.Zip.Saving.SevenZipAESEncryptionSettings

属性

CompressHeader

获取或设置指示是否压缩归档头的值。

public bool CompressHeader { get; set; }

属性值

bool

备注

此设置相当于 7-Zip 工具的 -mhc=on 开关。目前与头部加密不兼容。

CompressionSettings

获取压缩或解压缩例程的设置。

public SevenZipCompressionSettings CompressionSettings { get; }

属性值

SevenZipCompressionSettings

EncryptionSettings

获取加密或解密的设置。特定条目的设置可能会有所不同。

public SevenZipEncryptionSettings EncryptionSettings { get; }

属性值

SevenZipEncryptionSettings

备注

Aspose.Zip.Saving.SevenZipAESEncryptionSettings 是 7Z 归档的唯一选项。

 中文