Bzip2CompressionSettings.Bzip2CompressionSettings
Contenu
[
Cacher
]Bzip2CompressionSettings(int)
Initialise une nouvelle instance duBzip2CompressionSettings
classe.
public Bzip2CompressionSettings(int blockSize)
Paramètre | Taper | La description |
---|---|---|
blockSize | Int32 | Taille de bloc en centaines de kilo-octets. |
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | La taille du bloc n’est pas comprise entre 1 et 9. |
Exemples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings(1))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Voir également
- class Bzip2CompressionSettings
- espace de noms Aspose.Zip.Saving
- Assemblée Aspose.Zip
Bzip2CompressionSettings()
Initialise une nouvelle instance duBzip2CompressionSettings
classe avec taille de bloc par défaut, égale à 9 centaines de kilo-octets.
public Bzip2CompressionSettings()
Exemples
using (Archive archive = new Archive(new ArchiveEntrySettings(new Bzip2CompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Voir également
- class Bzip2CompressionSettings
- espace de noms Aspose.Zip.Saving
- Assemblée Aspose.Zip