Export (0) Print
Expand All

PollingDuplexHttpBinding.MaxReceivedMessageSize Property

Silverlight

Gets or sets the maximum size for a message that can be received on a channel configured with this binding.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel.PollingDuplex (in System.ServiceModel.PollingDuplex.dll)

public long MaxReceivedMessageSize { get; set; }

Property Value

Type: System.Int64
The maximum size, in bytes, for a message that is processed by the binding. The default value is 65,536 bytes.

ExceptionCondition
ArgumentOutOfRangeException

The value is less than zero.

The size of the messages that can be received on the wire by clients using the PollingDuplexHttpBinding class 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.

There is also a MaxBufferSize property on the PollingDuplexHttpBinding that gets or sets the maximum size for a buffer on the client that receives messages from the channel.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft