TransportBindingElement.MaxReceivedMessageSize Property

Gets and sets the maximum allowable message size that can be received.

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

public virtual long MaxReceivedMessageSize { get; set; }

Property Value

Type: System.Int64
The maximum allowable message size that can be received. The default is 65,536 bytes.

ExceptionCondition
ArgumentOutOfRangeException

The value set cannot be negative.

This property can handle the scenario where a message is sent with a very large or infinite specified length, or where data is sent continuously to a connected Named Pipe.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

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

Community Additions

ADD
Show: