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

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public CompressionAlgorithm Compression { get; set; }
Visual Basic
Public Property Compression As CompressionAlgorithm
	Get
	Set
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