WCF-Xtensions Class Reference for .NET
CompressionLevel Property (SmartHttpBindingElement)






Gets and sets the compression level to be applied when compression is used, were 1 is for fastest compression and 9 for maximum compression.
Syntax
[System.Configuration.ConfigurationProperty(Name="compressionLevel", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public System.int CompressionLevel {get; set;}
public read-write property CompressionLevel: System.Integer; 
System.Configuration.ConfigurationPropertyAttribute(Name="compressionLevel", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set CompressionLevel : System.int
[System.Configuration.ConfigurationProperty(Name="compressionLevel", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property System.int get_CompressionLevel();
public: __property void set_CompressionLevel( 
   System.int value
);
[System.Configuration.ConfigurationProperty(Name="compressionLevel", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property System.int CompressionLevel {
   System.int get();
   void set (    System.int value);
}
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="compressionLevel", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property CompressionLevel As System.Integer
 
'Usage
 
Dim instance As SmartHttpBindingElement
Dim value As System.Integer
 
instance.CompressionLevel = value
 
value = instance.CompressionLevel
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

SmartHttpBindingElement Class
SmartHttpBindingElement Members

Send Feedback