WCF-Xtensions Class Reference for .NET
CompressionThreshold Property (EnvelopeEndpointBehaviorElement)






Gets and sets the minimal size of the payload to be compressed, if compression is enabled.
Syntax
[System.Configuration.ConfigurationProperty(Name="compressionThreshold", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public System.int CompressionThreshold {get; set;}
public read-write property CompressionThreshold: System.Integer; 
System.Configuration.ConfigurationPropertyAttribute(Name="compressionThreshold", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set CompressionThreshold : System.int
[System.Configuration.ConfigurationProperty(Name="compressionThreshold", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property System.int get_CompressionThreshold();
public: __property void set_CompressionThreshold( 
   System.int value
);
[System.Configuration.ConfigurationProperty(Name="compressionThreshold", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property System.int CompressionThreshold {
   System.int get();
   void set (    System.int value);
}
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="compressionThreshold", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property CompressionThreshold As System.Integer
 
'Usage
 
Dim instance As EnvelopeEndpointBehaviorElement
Dim value As System.Integer
 
instance.CompressionThreshold = value
 
value = instance.CompressionThreshold
Remarks
Setting this property to the value greater than 0 breakes backward compatibility with WCF-Xtension released prior WCF-Xtensions v5.
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

EnvelopeEndpointBehaviorElement Class
EnvelopeEndpointBehaviorElement Members

Send Feedback