Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the amount of compression that will be used by the compression routines during Push and Pull operations.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Property CompressionLevel As Short
Get
Set
'Usage
Dim instance As SqlCeRemoteDataAccess
Dim value As Short
value = instance.CompressionLevel
instance.CompressionLevel = value
public short CompressionLevel { get; set; }
public:
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 that has been set.
Remarks
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 a 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.
The actual amount of data compression depends on the type of data being compressed.
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.