Gets/Sets the preferred compression algorithm used by all methods that produce OpenPGP messages (e.g Encrypt, Sign, etc.)

Namespace:  DidiSoft
Assembly:  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#
PGPLib pgp = new PGPLib();
pgp.Compression = CompressionAlgorithm.ZLIB;
CopyVB.NET
Dim pgp As New PGPLib()
pgp.Compression = CompressionAlgorithm.ZLIB

See Also