CompressionLevel Property

Specifies the amount of compression that will be used by the compression routines during replication.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)


Public Property CompressionLevel As Short
Dim instance As SqlCeReplication
Dim value As Short

value = instance.CompressionLevel

instance.CompressionLevel = value
public short CompressionLevel { get; set; }
property short CompressionLevel {
    short get ();
    void set (short value);
member CompressionLevel : int16 with get, set
function get CompressionLevel () : short
function set CompressionLevel (value : short)

Property Value

Type: System. . :: . .Int16
The compression level.


The CompressionLevel property allows you to customize compression to meet your specific needs. A lower value causes the compressor to run more quickly, but the data transmitted is not as tightly compressed and therefore takes longer to transmit. A higher compression level value will cause more processing on the server running IIS, but will reduce data transfer times.

A value of 0 turns off all compression. The default value is 1, which uses the lowest amount of processor time while still providing some compression. The maximum value is 6.

The actual amount of data compression depends on the type of data being compressed.

See Also


SqlCeReplication Class

SqlCeReplication Members

System.Data.SqlServerCe Namespace