WCF-Xtensions Class Reference for .NET
MaxReceivedMessageSize Property (SmartHttpBinding)






Gets or sets the maximum size for a message that can be received on a channel configured with this binding.
Syntax
public System.long MaxReceivedMessageSize {get; set;}
public read-write property MaxReceivedMessageSize: System.Int64; 
public function get,set MaxReceivedMessageSize : System.long
public: __property System.long get_MaxReceivedMessageSize();
public: __property void set_MaxReceivedMessageSize( 
   System.long value
);
public:
property System.int64 MaxReceivedMessageSize {
   System.int64 get();
   void set (    System.int64 value);
}
'Declaration
 
Public Property MaxReceivedMessageSize As System.Long
 
'Usage
 
Dim instance As SmartHttpBinding
Dim value As System.Long
 
instance.MaxReceivedMessageSize = value
 
value = instance.MaxReceivedMessageSize

Property Value

The maximum size, in bytes, for a message that is processed by the binding. The default value is 65,536 bytes.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The value is less than zero.
System.ServiceModel.QuotaExceededException A message exceeded the maximum size allocated.
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

SmartHttpBinding Class
SmartHttpBinding Members

Send Feedback