DevForce Help Reference
CompressionLevel Property


Gets or sets the compression level for requests and responses between the client application and server.
Syntax
'Declaration
 
Public Property CompressionLevel As CompressionLevel
'Usage
 
Dim instance As CommunicationSettings
Dim value As CompressionLevel
 
instance.CompressionLevel = value
 
value = instance.CompressionLevel
public CompressionLevel CompressionLevel {get; set;}
Remarks
By default, compression is performed on the client for requests to be sent to the server; and on the server for responses to be sent to the client.

The default level is "default", which is intended to provide a balance between speed and compression efficiency. Use a level of "None" to turn off compression. You may use different settings on the client and server, and modify the setting at any time. When a message is to be compressed, the current value of CommunicationSettings.Default.CompressionLevel is used to determine the compression in effect.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommunicationSettings Class
CommunicationSettings Members

Send Feedback