| Visual Basic (Declaration) | |
|---|---|
Public Property CompressionLevel As CompressionLevel | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As CommunicationSettings Dim value As CompressionLevel instance.CompressionLevel = value value = instance.CompressionLevel | |
| C# | |
|---|---|
public CompressionLevel CompressionLevel {get; set;} | |
| C++/CLI | |
|---|---|
public: property CompressionLevel CompressionLevel { CompressionLevel get(); void set ( CompressionLevel value); } | |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family