Gets/Sets the preferred compression algorithm used by all methods that produce OpenPGP messages (e.g Encrypt, Sign, etc.)
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public CompressionAlgorithm Compression { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property Compression As CompressionAlgorithm |
| Visual C++ |
|---|
public: property CompressionAlgorithm Compression { CompressionAlgorithm get (); void set (CompressionAlgorithm value); } |
Remarks
Default is ZIP
Examples
This example demonstrates how to change the preferred compression algorithm used by the library.
CopyC#
CopyVB.NET
PGPLib pgp = new PGPLib();
pgp.Compression = CompressionAlgorithm.ZLIB;Dim pgp As New PGPLib() pgp.Compression = CompressionAlgorithm.ZLIB