SevenZipEntrySettings.Solid
SevenZipEntrySettings.Solid property
Gets or sets value indicating whether to concatenate entries and treat them as a single data block.
public bool Solid { get; set; }
Remarks
Provide SevenZipEntrySettings
for solid 7z archive on archive instantiation.
Examples
The following example shows how to compress a directory to solid 7z archive with LZMA2 compression without encryption.
using (FileStream sevenZipFile = File.Open("archive.7z", FileMode.Create))
{
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(new SevenZipLZMA2CompressionSettings()){ Solid = true }))
{
archive.CreateEntries("C:\\Documents");
archive.Save(sevenZipFile);
}
}
See Also
- class SevenZipEntrySettings
- namespace Aspose.Zip.Saving
- assembly Aspose.Zip