---
title: "LzipArchiveSettings.CompressionThreads"
url: "https://reference.aspose.com/zip/net/aspose.zip.lzip/lziparchivesettings/compressionthreads/"
product: "Aspose.ZIP for .NET API Reference"
description: "LzipArchiveSettings property. Gets or sets compression thread count. If the value is greater than 1 multithreading compression will be used"
---

## LzipArchiveSettings.CompressionThreads property

Gets or sets compression thread count. If the value is greater than 1, multithreading compression will be used.

```csharp
public int CompressionThreads { get; set; }
```

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException | The number of threads is more than 100. |

## Remarks

Do not set this number more than CPU cores.

### See Also

* class [LzipArchiveSettings](../)
* namespace [Aspose.Zip.Lzip](../../lziparchivesettings/)
* assembly [Aspose.Zip](../../../)


