Gets or sets the maximum size for a message that can be received on a channel configured with this binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The size of the messages that can be received on the wire by clients using the BasicHttpBinding is bounded by the amount of memory allocated for each message. This bound on message size is intended to limit exposure to DoS-style attacks.
// Get default MaxReceivedMessageSize long maxReceivedBufferSize = binding.MaxReceivedMessageSize; //Output of txtMBS: 65536 string txtMRBS = maxReceivedBufferSize.ToString(); // Set new MaxReceivedMessageSize binding.MaxReceivedMessageSize = 4096; string txtNewMRBS = binding.MaxReceivedMessageSize.ToString();
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.