Class SevenZipEntrySettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
Cài đặt được sử dụng để nén hoặc giải nén các mục 7Z.
public class SevenZipEntrySettings
Kế thừa
object ← SevenZipEntrySettings
Các thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Các hàm khởi tạo
SevenZipEntrySettings(SevenZipCompressionSettings, SevenZipEncryptionSettings)
Khởi tạo một thể hiện mới của lớp Aspose.Zip.Saving.SevenZipEntrySettings.
public SevenZipEntrySettings(SevenZipCompressionSettings compressionSettings = null, SevenZipEncryptionSettings encryptionSettings = null)
Tham số
compressionSettings
SevenZipCompressionSettings
Cài đặt cho việc nén. Truyền null để sử dụng cài đặt LZMA mặc định.
Có thể là một trong những cái sau:
- Aspose.Zip.Saving.SevenZipLZMACompressionSettings
- Aspose.Zip.Saving.SevenZipLZMA2CompressionSettings
- Aspose.Zip.Saving.SevenZipBZip2CompressionSettings
- Aspose.Zip.Saving.SevenZipStoreCompressionSettings
- Aspose.Zip.Saving.SevenZipPPMdCompressionSettings
encryptionSettings
SevenZipEncryptionSettings
Cài đặt cho việc mã hóa. Truyền null nếu không cần mã hóa hoặc giải mã.
Chỉ có thể là một:
- Aspose.Zip.Saving.SevenZipAESEncryptionSettings
Các thuộc tính
CompressHeader
Lấy hoặc đặt giá trị cho biết liệu có nén tiêu đề lưu trữ hay không.
public bool CompressHeader { get; set; }
Giá trị thuộc tính
Nhận xét
Cài đặt này tương đương với -mhc=on
của công cụ 7-Zip. Hiện tại, nó không tương thích với mã hóa tiêu đề.
CompressionSettings
Lấy cài đặt cho quy trình nén hoặc giải nén.
public SevenZipCompressionSettings CompressionSettings { get; }
Giá trị thuộc tính
EncryptionSettings
Lấy cài đặt cho việc mã hóa hoặc giải mã. Cài đặt của từng mục có thể khác nhau.
public SevenZipEncryptionSettings EncryptionSettings { get; }
Giá trị thuộc tính
Nhận xét
Aspose.Zip.Saving.SevenZipAESEncryptionSettings là tùy chọn duy nhất cho các kho lưu trữ 7Z.